Where does default USER PROFILE for the Internet Explorer lives and how do I access it from Selenium? -


each time run test, new instance of ie, ignore settings. solve same problem in firefox , chrome setting option browsers specific user profile.

firefoxprofile profile = new firefoxprofile(path/to/profile"); public static readonly iwebdriver webdriver = new firefoxdriver(profile); 

this how path user profile looks in firefox:

@"c:\users\<user_name>\appdata\roaming\mozilla\firefox\profiles\t1hjw29h.watirwebdriver" 

i'd in folder user profile lives in internet explorer , how access selenium.

thanks helping

after straggling problem days, i've found solution on youtube helped me solve it, @ least when comes internet explorer. i'm still looking appropriate solution in chrome.

  1. one need download autoit said in video
  2. write autoit script, save it, , compile produce executable file shown in video
  3. add command execute autoit in context of automation.

the last step in critical of all. in case, i've put in open method because it's when open page prompted authentication popup.

   public virtual void open(         string urlparam = "")     {         driver.navigate().gotourl(expectedpageurl.replace("{0}", urlparam));         process.start("path autoit executable file\basicauth.exe");         wait(3);     } 

my autoit executable file called basicauth.exe. it's working perfectly, i.e. i'm able run test on pages require credentials.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -