selenium webdriver - AutoIt: Browser authentication issue on chrome -


in test environment, authentication done using windows popup whereas in production done i.e on webpage.

i using autoit none of scripts working, please help.

few of solution tried,

winwaitactive("authentication required","","10") send("username") send("{tab}") send("password") send("{enter}") 

2nd solution:

winwait("locator","","10") // locator class found using finder tool   if winexists("locator","") // in autoit  winactivate("locator")   send("username@domain.com{tab}")  winactivate("locator")  send("password{enter}")   endif 

i know seems pretty straight forward have not been able on chrome whereas if tweak script bit works fine on ie

on selenium handling browser authentication pop need do;

var alert = driver.switchto().alert(); alert.setauthenticationcredentials("username", "password"); alert.accept(); 

Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -