| Documentation: | Waits until element specified with `locator` is not visible. |
|---|---|
| Start / End / Elapsed: | 20160614 14:04:52.170 / 20160614 14:05:02.254 / 00:00:10.084 |
| Documentation: | Takes a screenshot of the current page and embeds it into the log. |
|---|---|
| Start / End / Elapsed: | 20160614 14:05:01.999 / 20160614 14:05:02.248 / 00:00:00.249 |
| 14:05:02.254 | FAIL | StaleElementReferenceException: Message: stale element reference: element is not attached to the page document (Session info: chrome=51.0.2704.84) (Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Windows NT 6.1 SP1 x86_64) |
First of all lets be clear about what a WebElement is.
A WebElement is a reference to an element in the DOM.
A StaleElementException is thrown when the element you were interacting is destroyed and then recreated. Most complex web pages these days will move things about on the fly as the user interacts with it and this requires elements in the DOM to be destroyed and recreated.