Why isn't Javascript functioning when I access the site through a web driver script? Here is the link to the site: . The code snippet is as follows:
WebDriver d=new FirefoxDriver();
d.get("http://www.formget.com/tutorial/register_demo/registration.html");
d.findElement(By.id("register")).click();
When I manually click on the Register button after opening the site using the script, no alert box appears. However, when I click on the button via the script, an alert box is displayed. Why does this discrepancy occur?