Refer the article New Selenium IDE – Commands (Selenese), for the complete list of Selenium IDE commands and their practical demonstrations.
wait for element visible is one of the commands in Selenium IDE.
The purpose of the wait for element visible command is to wait for the element to get displayed on the page i.e. If any required element on the application is by default not displayed and gets displayed in some time, we can use wait for element visible command to wait for the element to get displayed before performing any operation on the element.
In this article, I will practically demonstrate wait for element visible command with the below-shown example:
Let’s get started.
New Selenium IDE – Using ‘wait for element visible’ command
Follow the below steps for practicing wait for element visible command in Selenium IDE along with me:
1) Let’s write the below code in Selenium IDE to wait for the required text to be displayed on the page, store the displayed text and print under Logs tab:
|wait for element visible||id=delayedText||30000|
After incorporating the commands in the above table, Our Selenium IDE should look like below:
2) Run the test and observe that Selenium IDE waits for the required text to get displayed on the page, stores the displayed text and prints under the Log tab as shown below:
Here concludes the practical demonstration of wait for element visible command for waiting for the text to get displayed on the page.
In the next article, I will practically demonstrate another Selenium IDE command.
- > 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.