How to enter password in a popup using watir?

前端 未结 3 603
粉色の甜心
粉色の甜心 2021-02-06 14:46

I\'m writing some watir test cases:

browser.goto \"http://egauge2592.egaug.es/\"
browser.link(:href,\"/settings.html\").click
browser.text_field(:index,4).set(\"         


        
3条回答
  •  时光说笑
    2021-02-06 15:37

    Just put your basic auth credentials in the url:

    browser.goto "http://user:pass@egauge2592.egaug.es/"
    

提交回复
热议问题