- Anupam Jain
- Posts : 5
Join date : 2012-10-04
Click on a button not working properly with Selenium Server.
Thu Oct 04, 2012 9:26 pm
Hi All,
I have recorded a script with Selenium IDE and now when i imported it as Java TestNG framework to Selenium Web Driver my click button function doesent work properlt. I am running script in IE
Script is as follows :
driver.findElement(By.xpath("//div[@onclick='validateForm();']")).click();
Please suggest some work arrounds.
I have recorded a script with Selenium IDE and now when i imported it as Java TestNG framework to Selenium Web Driver my click button function doesent work properlt. I am running script in IE
Script is as follows :
driver.findElement(By.xpath("//div[@onclick='validateForm();']")).click();
Please suggest some work arrounds.
- SouravActive particpant
- Posts : 17
Join date : 2012-06-28
Re: Click on a button not working properly with Selenium Server.
Mon Oct 08, 2012 6:04 pm
First you need to be sure that using 'driver.findElement(By.xpath("//div[@onclick='validateForm();']")).' , its pointing to correct element.
Sometimes, click won't work for every element in IE, in that case, you can call directly onlick method.
Sometimes, click won't work for every element in IE, in that case, you can call directly onlick method.
- Anupam Jain
- Posts : 5
Join date : 2012-10-04
Re: Click on a button not working properly with Selenium Server.
Mon Oct 08, 2012 6:07 pm
Thanks Sourav for the reply...i checked the path...
it solved the issue..
Also if you can help me with the beforeClass() script for Google chrome
it solved the issue..
Also if you can help me with the beforeClass() script for Google chrome
- (Selenium Webdriver) Not able to click BROWSE button while uploading a file in GWT Framework
- Select the “back” button of the Firefox browser to right click and Select the Option from the right click Menu in Selenium Web Driver - Java
- In selenium web driver , while running the script ,after the browser(modal) message box is displayed and closed by selenium , the next button click statement is not executing
- selenium.click("id=xxx"); not working
- com.thoughtworks.selenium.SeleniumException: Cannot click on element (WARNING: The server did not provide any stacktrace information)
Permissions in this forum:
You cannot reply to topics in this forum