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?