I am writing several watir tests:
browser.goto "http://egauge2592.egaug.es/" browser.link(:href,"/settings.html").click browser.text_field(:index,4).set("some text") browser.button(:id,"save_button").click
The Authentication Required dialog box opens, prompting for a username and password.
No matter how I tried, I could not access the text fields.
I tried send_keys and JavaScript.
I also tried Watir.autoit , but it says an undefined method.
I am using watir on a Ubuntu machine with a FireFox browser.
How to fill in the username and password fields of this dialog box? I was able to enter the username using browser.alert.set, but I could only set that the username could not access the password field.
source share