Skip to main content

Click() command in Webdriver ApiAPI not working

I have tested a scenario where I have to enter user credentials and click on login button using selenium2Selenium2 (version selenium2.19-standalone.jar)

driver.findElement(By.id("emailIdLogin")).sendKeys("[email protected]");
driver.findElement(By.id("passwordLogin")).sendKeys("test1234");
driver.findElement(By.id("submitLogin")).click

On click is performed on submit button but page is not loaded to new page. Whereas when I use driver.findElement(By.id("submitLogin")).sendKeys(Keys.ENTER) page is loaded to the next page. Please explain why click command is not loading the new page.

I am using Firefox 8.

Click() command in Webdriver Api not working

I have tested a scenario where I have to enter user credentials and click on login button using selenium2 (version selenium2.19-standalone.jar)

driver.findElement(By.id("emailIdLogin")).sendKeys("[email protected]");
driver.findElement(By.id("passwordLogin")).sendKeys("test1234");
driver.findElement(By.id("submitLogin")).click

On click is performed on submit button but page is not loaded to new page. Whereas when I use driver.findElement(By.id("submitLogin")).sendKeys(Keys.ENTER) page is loaded to the next page. Please explain why click command is not loading the new page.

I am using Firefox 8.

Click() command in Webdriver API not working

I have tested a scenario where I have to enter user credentials and click on login button using Selenium2 (version selenium2.19-standalone.jar)

driver.findElement(By.id("emailIdLogin")).sendKeys("[email protected]");
driver.findElement(By.id("passwordLogin")).sendKeys("test1234");
driver.findElement(By.id("submitLogin")).click

On click is performed on submit button but page is not loaded to new page. Whereas when I use driver.findElement(By.id("submitLogin")).sendKeys(Keys.ENTER) page is loaded to the next page. Please explain why click command is not loading the new page.

I am using Firefox 8.

I have tested a scenario where iI have to enter user credentials and click on login button using selenium2  (version selenium2.19-standalone.jar) driver.findElement(By.id("emailIdLogin")).sendKeys("[email protected]"); driver.findElement(By.id("passwordLogin")).sendKeys("test1234"); driver.findElement(By.id("submitLogin")).click On

driver.findElement(By.id("emailIdLogin")).sendKeys("[email protected]");
driver.findElement(By.id("passwordLogin")).sendKeys("test1234");
driver.findElement(By.id("submitLogin")).click

On click is performed on submit button but page is not loaded to new page

where as. Whereas when iI use driver.findElement(By.id("submitLogin")).sendKeys(Keys.ENTER)driver.findElement(By.id("submitLogin")).sendKeys(Keys.ENTER) page is loaded to the next page, can anyone please. Please explain me why click command is not loading the new page.

I am using Firefox 8.

I have tested a scenario where i have to enter user credentials and click on login button using selenium2(version selenium2.19-standalone.jar) driver.findElement(By.id("emailIdLogin")).sendKeys("[email protected]"); driver.findElement(By.id("passwordLogin")).sendKeys("test1234"); driver.findElement(By.id("submitLogin")).click On click is performed on submit button but page is not loaded to new page

where as when i use driver.findElement(By.id("submitLogin")).sendKeys(Keys.ENTER) page is loaded to the next page, can anyone please explain me why click command is not loading the new page.

I am using Firefox 8.

I have tested a scenario where I have to enter user credentials and click on login button using selenium2  (version selenium2.19-standalone.jar)

driver.findElement(By.id("emailIdLogin")).sendKeys("[email protected]");
driver.findElement(By.id("passwordLogin")).sendKeys("test1234");
driver.findElement(By.id("submitLogin")).click

On click is performed on submit button but page is not loaded to new page. Whereas when I use driver.findElement(By.id("submitLogin")).sendKeys(Keys.ENTER) page is loaded to the next page. Please explain why click command is not loading the new page.

I am using Firefox 8.

Tweeted twitter.com/#!/StackSQA/status/180573250261233664
clarify which browser he is using
Source Link
user246
user246

I have tested a scenario where i have to enter user credentials and click on login button using selenium2(version selenium2.19-standalone.jar) driver.findElement(By.id("emailIdLogin")).sendKeys("[email protected]"); driver.findElement(By.id("passwordLogin")).sendKeys("test1234"); driver.findElement(By.id("submitLogin")).click On click is performed on submit button but page is not loaded to new page

where as when i use driver.findElement(By.id("submitLogin")).sendKeys(Keys.ENTER) page is loaded to the next page, can anyone please explain me why click command is not loading the new page.

I am using Firefox 8.

I have tested a scenario where i have to enter user credentials and click on login button using selenium2(version selenium2.19-standalone.jar) driver.findElement(By.id("emailIdLogin")).sendKeys("[email protected]"); driver.findElement(By.id("passwordLogin")).sendKeys("test1234"); driver.findElement(By.id("submitLogin")).click On click is performed on submit button but page is not loaded to new page

where as when i use driver.findElement(By.id("submitLogin")).sendKeys(Keys.ENTER) page is loaded to the next page, can anyone please explain me why click command is not loading the new page.

I have tested a scenario where i have to enter user credentials and click on login button using selenium2(version selenium2.19-standalone.jar) driver.findElement(By.id("emailIdLogin")).sendKeys("[email protected]"); driver.findElement(By.id("passwordLogin")).sendKeys("test1234"); driver.findElement(By.id("submitLogin")).click On click is performed on submit button but page is not loaded to new page

where as when i use driver.findElement(By.id("submitLogin")).sendKeys(Keys.ENTER) page is loaded to the next page, can anyone please explain me why click command is not loading the new page.

I am using Firefox 8.

Source Link
saikrishna
  • 654
  • 3
  • 9
  • 18
Loading