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:
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:
2) Create a CSS Selector locating the above-said form as shown below:
3) Let’s write the below code in Selenium IDE to submit the login form using the below code in Selenium IDE:
[su_table alternate=”no”]
Command | Target | Value |
---|---|---|
open | http://tutorialsninja.com/demo/index.php?route=account/login | |
submit | css=form[action$=’login’] |
[/su_table]
After incorporating the commands in the above table, Our Selenium IDE should look like below:
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:
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 ?
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.