Wait for element to load when testing an iOS app using Appium and Ruby?

后端 未结 4 1321
我在风中等你
我在风中等你 2021-02-06 03:23

I am testing an iOS app, and can\'t interact with the elements after logging in because Appium is going too fast.

Can someone please point me to an example of using a We

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-06 04:01

    This worked for me but I am new to 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
    

提交回复
热议问题