HomeSelenium

New Selenium IDE – Using ‘remove selection’ command

New Selenium IDE – Using ‘remove selection’ command

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

remove selection is one of the commands in Selenium IDE.

The purpose of the remove selection command is to remove the selection of selected options in the multi-selection box field.

In this article, I am going to practically demonstrate remove selection commands in Selenium IDE for removing the selection of selected options in the multi-selection box field as shown below:

remove selection Selenium IDE - demo

Let’s get started.

New Selenium IDE – remove selection command

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

1) Let’s write the below code in Selenium IDE to remove the selection of the previously selected value ‘Volvo’ in multi-selection box field at http://omayo.blogspot.com/

[su_table alternate=”no”]

Command Target Value
open http://omayo.blogspot.com/
add selection id=multiselect1 Volvo
add selection id=multiselect1 Swift
add selection id=multiselect1 Hyundai
add selection id=multiselect1 Audi
remove selection id=multiselect1 Volvo

[/su_table]

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

remove selection Selenium IDE - typing

3) Click on ‘Run current test’ option as shown below:

remove selection Selenium IDE - run

4) Observe that the test will be passed and the test execution will remove the selection of the previously selected ‘Volvo’ option from the multi-selection box field as shown below:

remove selection Selenium IDE - executed

Here concludes the practical demonstration of remove selection 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.

Comments (0)

Leave a Reply

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

For FREE Testing Tutorials & Videos

X
Open chat
Contact Us on Whatsapp