Just How To Find Components By identification In Selenium WebDriver Using Instance

Before utilizing WebDriver software screening device, you have to bear in mind about various ways of finding a components in WebDriver regarding software internet software. Finding a component is important component in selenium WebDriver since whenever you really wants to consider several action on component (inputting wording or hitting switch of software internet software), initial you have to find that particular component to do motion. Let us learn to find component by identification.

To begin with I would recommend one to study each one of these selenium IDE component finding techniques after which study this short article about Selenium WebDriver component locators to obtain most finding techniques in greater method.

WebDriver application screening device that will be also called a Selenium TWO offers a variety of methods for finding component. I would like to clarify all of them using illustrations. Below I’m detailing just how to find component By identification and certainly will explain Finding Internet Component By ClassName in my own Subsequent Publish yet others in latter articles.

Finding UI Component By identification

In case your software internet softwareis webpage component offers distinctive and fixed identification then you can certainly find your webpage component by identification. Try looking in to bellow provided picture. You are able to confirm that the webelement offers any identification or not utilizing the firebug.


In above picture, Publish Question switch offers distinctive identification = ‘submitButton’. I will utilize that I-d to find switch as bellow.


Bellow provided instance will highlight just how to find component by identification after which just how to click it. Duplicate bellow provided @Check technique component and substitute it using the @Check technique section of instance provided with this webpage.

Leave a Reply

Your email address will not be published. Required fields are marked *