Selenium Webdriver 2.21 hangs on Firefox/Chrome alert/modal dialog

363 views
Skip to first unread message

Renuka Battula

unread,
Jun 1, 2012, 7:20:50 PM6/1/12
to Selenium Users
My Selenium webdriver scripts hangs after clicking on a link that
opens modal dialog in Firefox 12/Chrome latest version.Here is the
code I'm using to open the browser for chrome and Firefox.

FirefoxProfile profile = new ProfilesIni().getProfile("default");
profile.setAcceptUntrustedCertificates(false);
WebDriver driver = new FirefoxDriver(profile);
//System.setProperty("webdriver.chrome.driver", "C:\\Program Files\
\ChromeDriver\\chromedriver.exe");
// WebDriver driver = new ChromeDriver();
driver.get("http://SH2/employees_home.shtml");
Thread.sleep(1000);
driver.findElement(By.linkText("Hires")).click();

Clicking on link "Hires' opens a modal dialog and script hangs
forever.It doesn't throw any exception or stops the execution. Script
will never proceed to the next step to handle the dialog.If it
proceed I can handle that with AutoIt script. Could anyone help me
figure out the issue? Is there any settings to be changed with
browsers?

yas

unread,
Jun 5, 2012, 11:10:11 PM6/5/12
to Selenium Users
Hi Renuka

I got same problem.
However I got updated my selenium jar to 2.22, the problem solved and
start working fine, so try that.

yas
Reply all
Reply to author
Forward
0 new messages