How do I use Watir::Waiter::wait_until to force Chrome to wait?

前端 未结 3 1407
南笙
南笙 2020-12-14 03:01

I\'m trying to tell my watir script to wait for an ajax-injected login box to open up. I am using watir-webdriver, and testing in Chrome. I cannot get wait_until

3条回答
  •  独厮守ぢ
    2020-12-14 03:31

    You can also set timeout with browser.it will wait for it 700 seconds, like this.

    client = Selenium::WebDriver::Remote::Http::Default.new
    client.timeout = 700 # seconds � default is 60 second
    ie=Watir::Browser.new:firefox, :http_client => client
    

提交回复
热议问题