Closed rivernews closed 4 years ago
There's issues when enabling click element approach - it will cause stale element reference: element is not attached to the page document
. Perhaps the longer we manipulate a webelement, the more risk we will get this error. To mitigate this:
driver
to find element as possibleWe approach this by bringing in click approach again, and put it after guess url approach. No error reported again.
Some webpage failed locating review panel, because of a bug in the webpage. No matter how much we re-try, the result is the same. Probably this is due to glassdoor using server side rendering to generate static pages so the page doesn't change until the next update cycle. But we encounter the same problems as well, so looks like the update doesn't help.
Closer look into the cause (increase survival rate)
We currently don't have any idea of tackling this to try to scrape the content
click()
method may lead to the "page state has changed so cannot findElement on tainted DOM".Overall approach to increase throughput
We may focus on another approach to have the ability to skip