×

Selenium-IDE Login test

Login test for Selenium-IDE

Now we are learning, how to create a Login/sign-up Test case in Selenium IDE.

For our testing purpose, we are going to test the login page provided by the JDOODLE website, present under the URL: https://www.jdoodle.com 

Note: we can sign-up and create a login test on any publically available website.

The following image shows the screenshot of the home page that will appear when we click on the URL as mentioned above.

how to create a Login sign up Test case in Selenium IDE

 Firstly, we have to register our self and then do sign-up. Now, we are going to create a test script for login/sign-up test in Selenium IDE.

  • Open the Firefox web browser.
  • Click on the Selenium icon which is presented on the top right corner on your Firefox browser.
  • It will launch the Selenium IDE interface.
  • Then go to your Firefox browser and open URL: https://www.jdoodle.com 
  •  Enter the project name. e.g.,- Login_Test
  •  Enter the test case name. e.g.,- first_test
  • Now, click on the Start Recording button to start the recording of actions which is performed by the user.
Start Recording button selenium IDE test
  • Go to Firefox browser and right-click on any blank space within the page and select the Selenium IDE option.
  • Click on Selenium IDE then selects Assert Title. This command makes sure that the page title is correct.
Click on Selenium IDE
  • Now, click on the Sign-up button located at the top corner of the website.
click on the Sign-up button
  • Firstly, you have to register yourself by Filling-up all the details.
you have to register yourself by Filling-up all the details
  • Once you got registered, you will get the confirmation message.
you got registered
  • After successful registration, you will enter the login/sign-up credentials and click on the sign-up/log in button.
  • Meanwhile, you will get the notifications that Selenium –IDE is recording your action at the extreme right corner of your browser.
After successful registration
  • Once you get signed-in, Click on the user name section to view your account details.
Click on the user name section
  • For writing and executing the code in multiple languages, this website provides the online compiler and editor. 
  • Click on the first link that is JAVA compiler.
Click  first link that is JAVA compiler
  • After clicking on the first link, you will get the java compiler page, where you can write and execute the program.
you will get the java compiler page
  • Then click on the Logout button.
click on the Logout button
  • Now, go to the Selenium- IDE interface and click on the Stop Recording button to stop recording.
click on the Stop Recording button

Playing Back:

  • Click on the Run Current Test button. It will execute all the actions performed with the browser and gives you an overall summary of the completed test script.
the Run Current Test button
  • Log pane displays all the execution process of the executed test scripts.
execution process of the executed test scripts

Save Project:

save project button
  • Click on the save project button.
  • Save the entire test suite as login_Test.
Click on the save project button
  • You can find the test case suite at the location which is provided in the above steps.

Related Topics

Selenium WebDriver-Locators

Selenium WebDriver-Locators The WebDriver uses the same set of locating strategies like selenium -IDE for specifying the location of the web element. Each locating strategy has its command in Java to locate...

1 minute read.

Selenium WebDriver installation

Installation Steps of Selenium WebDriver In this tutorial, we will see the process of selenium webdriver installation. Selenium WebDriver installation process is done in four Stages: Java Installation (version 8 or higher version) Eclipse...

4 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 Tool Suite

The selenium tool suite is a combination of multiple software tools, and the entire tools having a different approach to support automation testing. Selenium test tool suites are as follows- Selenium...

2 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.

CSS Selector: Attribute in Selenium IDE

CSS Selector: Attribute Locating the attribute of a CSS selector, we would access the Password textbox, which is present in the login form of Facebook. The Password textbox has a type attribute...

1 minute read.

Selenium WebDriver - Browser Controls Commands

Selenium WebDriver - Browser Controls Commands WebDriver includes operations like opening a browser, fetch the title, and closing the browser, etc. Some of the most commonly used Browser controls commands for Selenium WebDriver...

6 minutes read.

Selenium WebDriver-CSS Selector: Tag and Class

Selenium WebDriver-CSS Selector: Tag and Class We will locate the web element with the help of tag and class CSS selector in this section of the tutorials Where Tag and class are...

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.

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-IDE Locators

Selenium-IDE Locators: Before we start learning about Selenium –IDE Locators, firstly we have to learn about UI elements. UI Elements -UI elements are the elements which are displayed on the web application....

1 minute read.

Id Locator in Selenium IDE

Id Locator Id locator is used to find the web element by the help of id of that element because ID is likely to be unique for each web element. Target Format: Id=id of the...

2 minutes read.

WebDriver-Partial Link Text locator

WebDriver-Partial Link Text locator In selenium WebDriver, there is an additional way to find a web link element with the help of partial link text locator. The partial link text is used...

4 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.

Selenium-IDE Installation in Mozilla Firefox

A beginners guides to Selenium-IDE Installation Since Selenium IDE is designed only for Firefox and Chrome plug-in, we are assuming that you have already installed the Mozilla Firefox browser in your...

1 minute read.

Selenium IDE Commands

Selenium –IDE Commands (SELENESE): Selenese commands are the set of commands used in Selenium IDE. Selenese command has two parameters target and value. Selenese command tests the existence of UI elements based on their HTML tags,...

3 minutes read.

Selenium WebDriver-CSS Selector: Tag and ID

Selenium WebDriver-CSS Selector: Tag and ID We will locate the web element with the help of tag and id CSS selector in this section of the tutorials Where Tag and id are...

4 minutes read.

WebDriver-Id Locator

WebDriver-Id Locator: The Id Locator is used to identify any web element in UI with the help of the ID attribute. The First preference is always goes to ID locator while inspecting...

4 minutes read.

Selenium WebDriver Characteristics

Characteristics of Selenium WebDriver Some of the essential characteristics of Selenium WebDriver are as follows: Multiple Operating System Support Selenium Webdriver supports multiple operating systems like: Desktop OS: Window, Linux, and macOS Mobile OS:...

2 minutes read.

Selenium WebDriver-CSS Selector: Substring Matching

CSS Selector: Substring Matching Selenium WebDriver In this tutorial, we will learn how to identify the web element using the substring method. A Sub-string contains three methods for identifying the web element...

9 minutes read.