I'm writing a Java app in which I'm doing a simple driver.get(url)
in which the url will prompt for a cert selection. I want to try and automate the cert selection process in Firefox 33 using the AutoIt jar, but I can't even get my Java program to continue after it executes this get
, since the site is in an indefinite state of loading until a cert is selected, so the execution indefinitely stays on the get
itself. Is there any way around this?
Asked
Active
Viewed 84 times
0

user2150250
- 4,797
- 11
- 36
- 44
1 Answers
0
I found a similar question: Make Selenium Webdriver Stop Loading the page if the desired element is already loaded?
Ths solution given in the above link is to change the firefox settings in case the webpage is taking too long to load.
FirefoxBinary firefox = new FirefoxBinary(new File("/path/to/firefox.exe"));
FirefoxProfile customProfile = new FirefoxProfile();
customProfile.setPreference("network.http.connection-timeout", 10);
customProfile.setPreference("network.http.connection-retry-timeout", 10);
driver = new FirefoxDriver(firefox, customProfile);

Community
- 1
- 1

LittlePanda
- 2,496
- 1
- 21
- 33