Thursday, February 19, 2009

Element not found error in Selenium IDE


I often face "element not found error" while executing Test cases in Selenium IDE. After some googling , I found error arises because, Selenium try to execute the command before the page gets loaded.


To over come, use AndWait command before the line where error is occurred

For example, If the flow like

Search button is clicked and a value is selected from the select box and proceed further.

If error occurs while selecting a value in the select box, use clickAndWait command for Search button click. So that Selenium Click the Search button and waits for the page to get load.



No comments:

Post a Comment