×

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

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.

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 Tutorial

Seleniun WebDriver Introduction Selenium WebDriver is the essential tool of Selenium Tool Suite because it can directly communicate the browser without any server.  Selenium WebDriver is a browser automation framework that accepts...

3 minutes 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.

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.

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.

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.

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-Link Text locator

WebDriver-Link Text locator The Link text locator is used to identify only web link elements based on the value of the link. The Link text locators cannot be used for other than...

4 minutes read.

CSS Selector: Class in selenium IDE

CSS Selector: Class Identify a web element with the help of Class as a CSS Selector is like using id attribute. The only difference between Class and id is in their...

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

CSS Selector: ID in Selenium IDE

CSS Selector: ID The id attribute is used to identify the web element uniquely in the web pages. Syntax of ID Attribute:  [HTML tag][#][Value of ID attribute] The hash sign (#): it is mandatory while using the...

1 minute 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.

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.

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.

Drag and Drop Event Handling

Drag and Drop Event Handling: In this tutorial, we will learn how to handle the drag and drop event in selenium WebDriver using the action class. Before going further in this tutorial...

6 minutes read.

CSS Selector: Inner text in Selenium IDE

CSS Selector: Inner text The inner text is used to identify and create a CSS Selector using a string pattern of the HTML tag which is displayed on the web page. Syntax...

1 minute 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 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 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.