【问题标题】:How to handle pageobject model with iframes in selenium如何在 selenium 中使用 iframe 处理 pageobject 模型
【发布时间】:2021-06-28 17:17:14
【问题描述】:

使用 java+selenium webdriver + testng 处理项目 我想知道在 pageobject 中处理(如果有的话)iframe 的最佳方法是什么?

【问题讨论】:

  • 看看this post 可能会对您有所帮助。

标签: java selenium-webdriver iframe ui-automation pageobjects


【解决方案1】:

您现有的所有页面对象结构保持不变。您所要做的就是在操作对象之前切换到特定的 iframe,并在对该对象进行特定操作后再次切换回默认内容。

【讨论】:

    猜你喜欢
    • 2012-04-14
    • 2017-01-22
    • 2013-10-17
    • 2021-12-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多