Hey there! any question in your mind? Ask It Now!.

Popular Categories





How to click on an element in selenium web driver?

+2 votes
131 views
asked in Software Testing by happyboy (210 points)
i am new in selenium i want to know how to click on element?

1 Answer

+2 votes
answered by seleniumGuru Expert (4,570 points)
selected by happyboy
 
Best answer

For clicking an element you need to find the element adress in which you want to click. :

there are several methods for finding an element for more details you can go here :

http://docs.seleniumhq.org/docs/03_webdriver.jsp#introducing-webdriver

WebDriver driver = FirefoxDriver();

driver.findelement(By.id("ID_of Element")).click();

commented by happyboy (210 points)
Thanks For information.

Related Questions

+2 votes
1 answer 1,214 views
+1 vote
1 answer 541 views
+1 vote
1 answer 2,229 views
+5 votes
7 answers 14,583 views
+2 votes
2 answers 815 views
+11 votes
1 answer 121 views

Not a Member yet?

Ask to Folks Login

My Account
615 Folks are online
65 members and 550 guest online
Your feedback is highly appreciated