How do you resolve stale element exception in Selenium?
How to Fix a Selenium Stale Element Reference Exception:
Solution 1: Refreshing the site page is the first solution. Solution 2: Solution number two is to use the Try Catch Block. Solution 3: ExpectedConditions are the third option.
Solution 4: Make use of POM.