HomeSelenium

New Selenium IDE – Using ‘submit’ command

New Selenium IDE – Using ‘submit’ command

Refer the article New Selenium IDE – Commands (Selenese), for the complete list of Selenium IDE commands and their practical demonstrations.

submit is one of the commands in Selenium IDE.

The purpose of the submit command is to submit any form on the page say Login, Signup forms, etc.

In this article, I am going to practically demonstrate submit commands in Selenium IDE for submitting a login form as shown below:

submit Selenium IDE - demo

Let’s get started.

New Selenium IDE – submit command

Follow the below steps for practicing submit command in Selenium IDE along with me:

1) Open http://tutorialsninja.com/demo/index.php?route=account/login and inspect the ‘Login’ section on the page and observe that it has form tag as shown below:

submit Selenium IDE - inspect

2) Create a CSS Selector locating the above-said form as shown below:

submit Selenium IDE - css

3) Let’s write the below code in Selenium IDE to submit the login form using the below code in Selenium IDE:

Command Target Value
open http://tutorialsninja.com/demo/index.php?route=account/login
submit css=form[action$=’login’]

After incorporating the commands in the above table, Our Selenium IDE should look like below:

submit Selenium IDE - typing

4) Run the test  and observe that the test will be passed and the login form without any details will get submitted as shown below:

submit Selenium IDE - executed

Here concludes the practical demonstration of submit command in Selenium IDE for removing the selection of the previously selected options in the multi-selection box fields.

In the next article, I will practically demonstrate another Selenium IDE command.

Next Steps:

  • > Check complete Selenium Tutorial Contents here (Click here)

Please leave your questions/comments/feedback below.

Happy Learning 🙂

About Me > Arun Motoori

On a mission to contribute to the Software Testing Community in all possible ways.

Refer the article New Selenium IDE – Commands (Selenese), for the complete list of Selenium IDE commands and their practical demonstrations.

If you like this article, share it on LinkedIn using the below button:

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *