Javajava
Javajava
Selenium
Selenium Python
Software Testing
Appium
JMeter
JUnit
Postman
Jira
TestNG
SoapUI
UIPath
RPA
QA
Interview Q
Selenium Tutorial
Selenium TutorialBasic TerminologySelenium FeaturesSelenium LimitationsSelenium vs
QTPSelenium Tool Suite
Selenium IDE
Selenium IDEIDE-InstallationIDE-FeaturesIDE-First Test CaseIDE-Login TestIDE-
CommandsIDE-Creating Test CasesIDE- Locating Strategies
Selenium WebDriver
Selenium WebDriverWebDriver Vs RCWebDriver-InstallationFirst Test CaseWebDriver
CommandsRunning Test on ChromeRunning Test on FirefoxRunning Test on IERunning Test
on SafariLocating StrategiesHandling Drop-DownsWebDriver-Drag and DropWebDriver-
Handling AlertsScrolling a Web PageWebDriver - Browser CommandsWebDriver - Navigation
CommandsWebDriver - WebElement CommandsHandling Radio ButtonsHandling
CheckboxSelenium AssertionsSelenium Grid
Misc
Selenium WaitsHow to Use AutoIT with Selenium Webdriver
Selenium Python
Selenium Python Tutorial
Selenium C#
Selenium C# Tutorial
Selenium Maven
Selenium Maven
Interview Questions
Selenium Interview
Next →← Prev
Let us consider an example on how to use name locator as a target for commands in Selenium IDE.
We will create a login test, so that you could get a better understanding of locating elements through n
For second command to be entered, we need a unique identification element for the Username text b
the IDE to identify the target location.
o Right click on the "Username" text box and select Inspect Element.
o
o It will launch a window containing all the specific codes involved in the development o
text box.
o Pick element with the matching name attribute that contains the specific name for the "Usernam
o Modify the properties of second command as:
o Command: click at
o Target: name=login
o After execution, this command will click on the Username text box.
We will now add a command that will click on the "Password" text box. For this command, w
identification for the "Password" field which will help the IDE to identify the target location.
o
o Right click on the "Password" text box and select Inspect Element.
o It will launch a window containing all the specific codes involved in the development
text box.
o
o Pick element with the matching name attribute that contains the specific name for th
box.
At last, we need a unique identification element for the Login Submit button which will help the ID
target location.
o It will launch a window containing all the specific codes involved in the development o
button.
o
o Pick element with the matching name attribute that contains the specific name for the "G
o Click on the "Run Current Test" button present on the tool bar menu of the IDE. It will execute a
commands on the browser and gives you an overall summary of the executed test script.
o The Log pane displays the overall summary of the executed test scripts.
Thus, you can see that we have used name locator as a target for most of our Selenium commands.
← PrevNext →
Feedback
Splunk
SPSS
Swagger
Transact-SQL
Tumblr
ReactJS
Regex
Reinforcement Learning
R Programming
RxJS
React Native
Python Pillow
Python Turtle
Keras
Preparation
Aptitude
Reasoning
Verbal Ability
Interview Questions
Company Questions
Trending Technologies
Artificial Intelligence
AWS
Selenium
Cloud Computing
Hadoop
ReactJS
Data Science
Angular 7
Blockchain
Git
Machine Learning
DevOps
B.Tech / MCA
DBMS
Data Structures
DAA
Operating System
Computer Network
Compiler Design
Computer Organization
Discrete Mathematics
Ethical Hacking
Computer Graphics
Software Engineering
Web Technology
Cyber Security
Automata
C Programming
C++
Java
.Net
Python
Programs
Control System
Data Mining
Data Warehouse
LEARN TUTORIALS
INTERVIEW QUESTIONS
ABOUT
Javatpoint provides tutorials with examples, code snippets, and practical insights,
making it suitable for both beginners and experienced developers.
There are also many interview questions which will help students to get placed in the
companies.
CONTACT