OpenTest是否支持为元素位置或页面加载指定隐式等待?
发布于 2020-01-16 02:31:14
您不需要在OpenTest中使用隐式等待。所有关键字都知道如何等待与之交互的UI元素。在幕后,OpenTest使用显式等待,您可以在必要时通过设置测试操作的explicitWaitSec参数(缺省值为10秒)来自定义等待。例如:
- description: Verify that element is visible
action: org.getopentest.selenium.AssertElementVisible
args:
locator: { id: my_element }
explicitWaitSec: 20https://stackoverflow.com/questions/59672915
复制相似问题