×

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 - IE [Internet Explorer] browser

Selenium WebDriver - IE [Internet Explorer] browser In this segment, we will understand how to run a test script with the help of the IE (Internet Explorer) browser. It is a standalone...

4 minutes read.

Advantages and Disadvantages of Selenium-IDE

Advantages and Disadvantages of Selenium-IDE Advantages of Selenium IDE: UI based record and playback tool. Easy to understand & developed a test script. Selenium-IDE test script export into web driver code & Selenium–RC It is...

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

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.

WebDriver-Tag Name Locator

Selenium WebDriver-Tag Name Locator The tag name locator is used along with the findElements() method to identify multiple similar elements in the UI. It is used to locate the web element with...

3 minutes read.

Selenium WebDriver-CSS Selector: Tag Class and Attribute

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

5 minutes read.

CSS Selector: Sub String in Selenium IDE

CSS Selector: Sub String CSS Selector Sub-string is used to match a partial string to locate a particular web element. There are three ways to match a substring using a CSS Selector. Match...

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

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

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

2 minutes read.

CSS Selector: ID/Class and Attribute in Selenium IDE

CSS SELECTOR: ID/Class and Attribute The Id, class, and attribute of CSS selector are used to identify the web element to access the web pages.  Syntax for Id/Class and Attribute: css= <./#> {[attribute=Value of...

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.

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

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

WebDriver-Name Locator:

WebDriver-Name Locator: The name locator is used to identify any element in UI with the help of the name backend attribute. The Syntax of the name attribute is as below: driver.findElement(By.name(“value of the...

4 minutes read.