×

Name Locator in Selenium IDE

NAME LOCATOR:

It is used to find the name in the web element.

If we have multiple web elements of the same name, then the first matched element would be returned.

  • Open the Firefox browser
  • Click on the Selenium icon, and it will open the Selenium IDE interface.
  • Now go to the Test Script Editor Box and click on the command text box.
NAME LOCATOR
  • Write the first command as:-

Command: open

Target: https://login.yahoo.com

Command open
  • This command loads the login page of yahoo on Firefox browser.
  • Then right-click on the username textbox and,
  • Click on inspect Element (Q).
command loads the login page of yahoo on Firefox browser
  • You will get a window contains all the specific codes involved in the Development Tool of the Username text box.
  • Then drag your mouse over the developer tools; you will see the highlighted area of the username textbox on the yahoo page.
  • Then select the name attribute that contains the specific name for the Username text box.
You will get a window contains all the specific codes involved
  • Now write the second command in selenium –IDE interface:-

Command: click

Target: name=username

Command click
  • The username Textbox is clicked.
  • Then we have to enter data in the text box, so for this, we will use the same name element.
  • The third command is:

Command: type

Target: name=username

Value: username

e.g.-xyz11@yahoo.com

username Textbox is clicked.
  • Then right-click on the Next button and,
  • Click on inspect Element (Q).
right-click on the Next button
  • You will get a window contains all the specific codes involved in the Development Tool of the next button.
  • Then drag your mouse over the developer tools; you will see the highlighted area of the username textbox on the yahoo page.
  • Then select the name attribute that contains the specific name for the Next button.
You will get a window contains all the specific codes involved in the Development Tool of the next button
  • Now write forth command in selenium –IDE interface:-

Command: click

Target: name=sign in

  • It will lead you to the next button on the browser.
It will lead you to the next button on the browser
  • Then Right-click on the password textbox then,
  • Click on inspect Element (Q)
  • You will get a window contains all the specific codes involved in the Development Tool of the Password text box.
  • Drag the mouse over the developer tools; you will see the highlighted area of the password textbox on the yahoo page.
  • Then select the name attribute that contains the specific name for the Password text box.
Right-click on the password
  • Now write the fifth command in selenium –IDE interface:-

Command: click

Target: name=password

  • The password text box is clicked.
  • Then we have to enter data in the text box, so for this, we will use the same name element.
  • The sixth command is:

Command: type

Target: name=password

Value: User password

 e.g.-*********

enter data in the text box
  • Then Right-click on the Sign-Up button then,
  • Click on inspect Element (Q).
Right-click on the Sign-Up button
  • You will get a window contains all the specific codes involved in the Development Tool of the Sign-Up text box.
  • You have moved the mouse over the developer tools; you will see the highlighted area of the Sign-Up textbox on the yahoo page.
  • Then select the name attribute that contains the specific name for the Sign-Up text box.
specific name for the Sign-Up text box
  • Then we have to enter data in the text box, so for this, we will use the same name element.
  • The sixth command is:

Command: click

Target: name=verifyPassword

we have to enter data in the text box
  • And click on the Run Current Test button.
  • It will execute all the inserted commands on the browser.
  • The Log pane is displaying the overall summary of the executed test scripts.
  • And you can see the executed command results in the Brower as well.
click on the Run Current Test button

Related Topics

Selenium WebDriver – Web Element Controls

Selenium WebDriver – Web Element Controls A web element is an interface that is implemented by a remote web element class. The Web element control can be used to perform the data...

1 minute read.

Characteristics of Selenium IDE

Characteristics of Selenium IDE Selenium IDE is separated into different parts, each having their features and functionalities. The seven various components of Selenium IDE are as follows: MENU BAR: The menu bar is...

3 minutes read.

Selenium WebDriver- Microsoft Edge Browser

Selenium WebDriver- Microsoft Edge Browser: In this tutorial, we will learn how to launch the Microsoft Edge browser in the Selenium WebDriver. Before we start automating our test script with Microsoft Edge...

4 minutes read.

First test case of Selenium-IDE

First Test Case of Selenium-IDE: In this part, we are discussing how to create a basic test case in Selenium-IDE: The entire test script execution process in Selenium -IDE can be divided...

4 minutes read.

Name Locator in Selenium IDE

NAME LOCATOR: It is used to find the name in the web element. If we have multiple web elements of the same name, then the first matched element would be returned. Open the...

3 minutes read.

Selenium WebDriver - Navigation Controls Commands

Navigation Controls Commands in Selenium WebDriver WebDriver is used to hold the browser history and perform browser navigation operations like, back, forward, and refresh. Whenever a WebDriver launches a browser, all...

5 minutes read.

Selenium-IDE Installation in Chrome

Selenium-IDE Installation Since Selenium IDE is designed only for Firefox and Chrome plug-in, we are assuming that you have already installed the Google Chrome browser in your system. However, you can...

1 minute read.

Selenium IDE Tutorial for Beginners

Selenium IDE Introduction Selenium IDE stands for Integrated Development Environment. Selenium-IDE is released in 2006 and developed by SHINYA [JAPAN] THOUGHTWORK Company. Selenium IDE implemented as a Firefox plug-in, and concedes the record, edit, and debug tests....

2 minutes read.

CSS Selector Locator in Selenium IDE

It used to identify the web element based on HTML tag, id, class, and attributes. To describe the look and formatting of a document written in the markup language are known...

1 minute read.

Selenium WebDriver- Checkbox handling

Selenium WebDriver- Checkbox handling In this tutorial, we will be learning about handling the checkbox in selenium WebDriver. Let us take one example to give you a better understanding of Checkbox handling,...

4 minutes read.

Selenium vs QTP

In this section, we are comparing the most frequently used automation tool –Selenium and QTP. Selenium and QTP have relative advantages over each other- FeaturesSeleniumHP QTPLicensingSelenium is an open-source testing tool....

3 minutes read.

WebDriver Interface | Class Diagram

WebDriver interface/class diagram: The interface of WebDriver includes the following stages, which is as follows: Search Context Web driver Remote web driver Driver class Search Context  The first interface of the web driver class is search Context,...

2 minutes read.

WebDriver-Class Name Locator

WebDriver-Class Name Locator In this tutorial, we will learn about the Class name locator of selenium WebDriver. The Class Name locator is used to identify any element in UI based on the...

4 minutes read.

Selenium WebDriver – Window handling

Selenium WebDriver – Window handling In this tutorial, we will understand how we can handle the window, multiple windows, and pop-ups in selenium WebDriver. We have different types of window, and pop-ups...

7 minutes read.

Drawback or Limitations of Selenium

Drawback or Limitations of Selenium Followings are the Drawback or limitations of Selenium:- Drawback /LimitationsDescriptionDesktop applications cannot be automated by Selenium.To test the desktop application, we have tools like Test Complete, Winnium, and...

2 minutes read.

Selenium WebDriver-CSS Selector locator

Selenium WebDriver-CSS Selector locator A CSS selector is used to identify the web element based on their “# id” and “. Class”, Html tags, and attributes. A CSS stands for Cascading Style...

1 minute read.

Selenium Tutorial

What is Selenium? Selenium is a functional testing tool and compatible with the non-functional testing tools also. Selenium is free and does not require any licensing. Functional tests script executed by...

6 minutes read.

Operational Controls Methods in Selenium WebDriver

Operational Controls Methods The Operational controls are used to perform all the actions on the web elements like click on the button, pass the value in the text box, and click...

4 minutes read.

Data-Capture Controls Methods in Selenium WebDriver

Data-Capture Controls Methods: The data-capture controls are used to determine the text, size, location, and the CSS value of the web element, etc. Some of the most commonly used data-capture controls are...

7 minutes read.

Selenium WebDriver-CSS Selector: Tag and Attribute

Selenium WebDriver-CSS Selector: Tag and Attribute We will locate the web element with the help of Tag and attribute CSS selector in this section of the tutorial. Where Tag and attribute are...

5 minutes read.