Home page

Friday, November 30, 2018

How to solve StaleElementException

Reason behind StaleElementException: Element gets destroy and gets recreated.

  1. Refresh page
  2. Use ‘try-catch block’ within ‘for loop’
  3. Wait for the element till it gets available
  4. Using POM

No comments:

Post a Comment