1.

What is the best way to deal with StaleElementReferenceException?

Answer»

Before we look at how to manage a StaleElementReferenceException using the Page Object Model, let's have a look at how to handle a StaleElementReferenceException.

First, let's define Stale Element REFERENCE EXCEPTION. Stale refers to something that is old, DETERIORATED, and no longer fresh. An old or no longer AVAILABLE element is referred to as a stale element. Assume there is a WebElement in WEBDRIVER that is discovered on a web page. The WebElement becomes stale when the DOM changes. The StaleElementReferenceException is thrown when we try to interact with a stale element.



Discussion

No Comment Found