Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Watir message: Instead of passing arguments into #wait_until_present method, use keywords

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.

like image 983
Gunnar Gläser Avatar asked Nov 20 '16 08:11

Gunnar Gläser


1 Answers

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.

like image 150
titusfortner Avatar answered Nov 18 '22 15:11

titusfortner