design-patterns - Selenium WebDriver 中的页面对象模式是什么?

标签 design-patterns selenium selenium-webdriver pageobjects

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












想改进这个问题?将问题更新为 on-topic对于堆栈溢出。

7年前关闭。




Improve this question




Selenium WebDriver 中的页面对象模式是什么?

它有什么用,我们如何在 Selenium WebDriver 中使用它?

示例将不胜感激。

最佳答案

文档已经涵盖了这一点。如果您有任何具体问题,请随时编辑您的主要帖子。

官方:

  • Page ObjectsPageFactory在 Selenuim 维基上。
  • Page Object Design Pattern在 Selenium 官方网站上。

  • 非官方:
    做一个谷歌搜索,你会得到很多这方面的信息。
  • Page Object Pattern
  • Page Objects in Selenium 2.0
  • Selenium 2/WebDriver Quick Tips: Page Object Navigation Strategies
  • PageObject通过马丁·福勒
  • 关于design-patterns - Selenium WebDriver 中的页面对象模式是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18094238/

    相关文章:

    c++ - 带有 .dll 的插件模式。如何从 dll 中提取插件接口(interface)?

    javascript - 使用 Python 等待 Selenium 中所有资源加载

    python - BeautifulSoup:从表单中抓取答案

    java - Selenium 启动的 ChromeDriver 一直在后台运行

    selenium-webdriver - 有没有更好的方法来定位以下 HTML 代码的元素?

    delphi - 使用 Delphi 实现透明远程处理的最简单解决方案是什么?

    c++ - 薄与厚适配器(包装器)示例

    java - Selenium 悬停功能在第二次调用时不起作用

    python - clickAndHold 在 Selenium webdriver (python) 中不起作用

    design-patterns - Windows服务和设计模式