ADVERTISEMENT
ADVERTISEMENT
o The name locator type will locate the first element with a matching name attribute.
o For example, name=username.
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
o Right click on the "Username" text box and select Inspect Element.
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
ADVERTISEMENT
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 Right click on the "Password" text box and select Inspect Element.
o
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.
We will use the same ID element for our next command which involves typing the password as login cr
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 →
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
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT
Like/Subscribe