【发布时间】:2021-06-28 17:17:14
【问题描述】:
使用 java+selenium webdriver + testng 处理项目 我想知道在 pageobject 中处理(如果有的话)iframe 的最佳方法是什么?
【问题讨论】:
-
看看this post 可能会对您有所帮助。
标签: java selenium-webdriver iframe ui-automation pageobjects
使用 java+selenium webdriver + testng 处理项目 我想知道在 pageobject 中处理(如果有的话)iframe 的最佳方法是什么?
【问题讨论】:
标签: java selenium-webdriver iframe ui-automation pageobjects
您现有的所有页面对象结构保持不变。您所要做的就是在操作对象之前切换到特定的 iframe,并在对该对象进行特定操作后再次切换回默认内容。
【讨论】: