Refer the article New Selenium IDE – Commands (Selenese), for the complete list of Selenium IDE commands and their practical demonstrations.
wait for element editable is one of the commands in Selenium IDE.
The purpose of the wait for element editable command is to wait for the element to get editable. i.e. If any required element on the application is by default in non-editable state and gets editable in some time, we can use wait for element editable command to wait for the element to get editable, before editing the element.
In this article, I will practically demonstrate wait for element editable command with the below-shown example:
Let’s get started.
New Selenium IDE – Using ‘wait for element editable’ command
Follow the below steps for practicing wait for element editable command in Selenium IDE along with me:
1) Let’s write the below code in Selenium IDE to wait for the ‘checkbox’ option to get editable after clicking on the ‘Check this’ button:
[su_table alternate=”no”]
Command | Target | Value |
---|---|---|
open | http://omayo.blogspot.com/ | |
click | xpath=//button[text()=’Check this’] | |
wait for element editable | id=dte | 30000 |
verify editable | id=dte |
[/su_table]
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 checkbox option to get enabled and then verifies whether the checkbox option is enabled state as shown below:
Here concludes the practical demonstration of wait for element editable command for waiting for the element to get editable.
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.