OpenTest是否支持指定隐式等待元素位置或页面加载?
答案 0 :(得分:1)
您无需在OpenTest中使用隐式等待。所有关键字都知道如何等待与之交互的UI元素。在后台,OpenTest使用显式等待,您可以在必要时通过为测试操作设置explicitWaitSec
参数(默认值为10秒)来自定义等待。例如:
- description: Verify that element is visible
action: org.getopentest.selenium.AssertElementVisible
args:
locator: { id: my_element }
explicitWaitSec: 20