0% found this document useful (0 votes)
38 views16 pages

ADVERTISEMENT

This document provides instructions for using name locators in Selenium IDE to automate a login test on the Rediff website. It describes opening the Rediff login page, entering a username and password using the "name" attribute, and clicking the submit button. Name locators help Selenium IDE find elements on the page for commands like typing, clicking. The test confirms name locators can be used as targets to automate common login tasks.

Uploaded by

sivaramlucky451
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views16 pages

ADVERTISEMENT

This document provides instructions for using name locators in Selenium IDE to automate a login test on the Rediff website. It describes opening the Rediff login page, entering a username and password using the "name" attribute, and clicking the submit button. Name locators help Selenium IDE find elements on the page for commands like typing, clicking. The test confirms name locators can be used as targets to automate common login tasks.

Uploaded by

sivaramlucky451
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

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 Launch Firefox browser.


o Click on the Selenium icon present on the top right corner on your browser.
o It will launch the default interface of Selenium IDE.
o Click on the command text box present on the Test Script Editor Box.

o Modify the properties of first command as:


o Command: open
o Target: https://mail.rediff.com/cgi-bin/login.cgi
o After execution, this command will load the Rediff login page on your Firefox browser.
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 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

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 use the same element for our next command.


ADVERTISEMENT

o Modify the properties of third command as:


o Command: type
o Target: name=login
o Value: username
o After execution, this command will type the username in 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 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.

o Modify the properties of fourth command as:


o Command : click at
o Target : name=passwd
o Upon execution this command will click on the Password text box.

We will use the same ID element for our next command which involves typing the password as login cr

o Modify the properties of fifth command as:


o Command : type
o Target : name=passwd
o Value : **********(User Login Password)
o Upon execution this command will type the user password as the login credential.
At last, we need a unique identification element for the Login Submit button which will help the ID
target location.

o Right click on the "Go" button and select Inspect Element.

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 Modify the properties of sixth command as:


o Command : click at
o Target : name=proceed
o After execution, this command will click on the "Go" submit button.

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.

Next Topic Locating by XPath

← PrevNext →

For Videos Join Our Youtube Channel: Join Now


Feedback

o Send your Feedback to [email protected]

Help Others, Please Share

Learn Latest Tutorials

Splunk

SPSS

Swagger

Transact-SQL

Tumblr

ReactJS
Regex

Reinforcement Learning

R Programming

RxJS

React Native

Python Design Patterns

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

You might also like