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

1 Answer

+2 votes
by Expert (4.6k points)
selected by
 
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();

0
by (210 points)
Thanks For information.

Not a Member yet?

Ask to Folks Login

My Account

Your feedback is highly appreciated