In Selenium research, which approach to handling StaleElementReferenceException is considered the most robust?
-
A
Wrapping every interaction in a try-catch that silently ignores the exception
-
B
Re-locating the element just before each interaction using a fresh WebDriver.findElement() call
-
C
Switching to JavaScript executor to bypass WebDriver element references
-
D
Increasing implicit wait timeout globally to 30 seconds