I use watir with firefox to grab a webpage after filling a form. Here a short part of my code:
browser.button(:type => 'submit').click
sleep 10
browser.element(:id => 'footer').wait_until_present(timeout=30)
html = browser.html
This message occur:
Instead of passing arguments into #wait_until_present method, use Keywords
What does that mean? How can i solve this? Thanks for help.
The answer is on the new Watir 6.0 FAQ: http://watir.github.io/watir-6-faq/#G
In your case, change from timeout=30
to timeout: 30
and you won't see the warning message.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With