Use of “addSelectionAndWait” and “removeSelectionAndWait” command

Last updated on October 8th, 2025 at 11:36 am

 “addSelectionAndWait” command in selenium IDE
When you are adding selection into multi select list box and page reloading due to the adding selection, you need to use addSelectionAndWait command to handle page loading event. You can use addSelection if page not reloading after adding selection.
I have not any perfect example of page reloading when adding selection in list box. Let me try to show you how to use addSelectionAndWait command.
New Test
Command Target Value
open http://only-testing-blog.blogspot.com/2013/09/testing.html
addSelection name=FromLB label=Japan
addSelection name=FromLB label=India
addSelectionAndWait name=FromLB label=Mexico

In this example, when selection label=Mexico, page not reloading so that this command will be not helpful
here. but you just need to consider it as page reloading.
 “removeSelectionAndWait” command in selenium IDE
Same as described in above example, removeSelectionAndWait command will works when page reloading when removing selection from multi select list box. here is example of how to use “removeSelectionAndWait” command in selenium IDE so that you can get some idea.
New Test
Command Target Value
open http://only-testing-blog.blogspot.com/2013/09/testing.html
addSelection name=FromLB label=Japan
addSelection name=FromLB label=Mexico
addSelection name=FromLB label=Italy
addSelection name=FromLB label=Greece
removeSelectionAndWai name=FromLB label=Mexico

author avatar
Aravind
Hi, I’m Aravind — a seasoned Automation Test Engineer with over 17 years of hands-on experience in the software testing industry. I specialize in tech troubleshooting and tools like Selenium, Playwright, Appium, JMeter, and Excel automation. Through this blog, I share practical tutorials, expert tips, and real-world insights to help testers and developers improve their automation skills.In addition to software testing, I also explore tech trends and user-focused topics, including Snapchat guides, codeless test automation, and more.
Stay Updated with New Articles
Get the latest tutorials and insights delivered to your inbox.

Leave a Reply

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