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

Popular Categories





How to click on an element in selenium web driver?

+2 votes
159 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,366 views
+1 vote
1 answer 588 views
+1 vote
1 answer 2,317 views
+5 votes
7 answers 14,776 views
+2 votes
2 answers 872 views
+11 votes
1 answer 151 views

Not a Member yet?

Ask to Folks Login

My Account
514 Folks are online
1 members and 513 guest online
Your feedback is highly appreciated