gpt4 book ai didi

ios - 使用 Appium 和 Ruby 测试 iOS 应用程序时等待元素加载?

转载 作者:可可西里 更新时间:2023-11-01 03:03:39 26 4
gpt4 key购买 nike

我正在测试 iOS 应用程序,登录后无法与元素进行交互,因为 Appium 运行速度太快。

有人可以给我指出一个使用 WebDriverWait 风格等待 Appium iOS 测试的例子吗?最好使用 Ruby。

谢谢。

最佳答案

这对我有用,但我是 Appium 的新手

#code that navigated to this page
wait = Selenium::WebDriver::Wait.new :timeout => 10
wait.until { @driver.find_element(:name, 'myElementName').displayed? }
#code that deals with myElementName

关于ios - 使用 Appium 和 Ruby 测试 iOS 应用程序时等待元素加载?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17731281/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com