selenium webdriver - How to handle Element is no longer attached to the DOM in page object? -


i'm trying test web site using page object, when i'm executing scripts, i'm getting element no longer attached dom (selenium::webdriver::error::staleelementreferenceerror) error message intermittently while calling function.

how can overcome issue, if suggestions?

we faced same problem in our project. 1 way of overcoming use try catch block within method causing problem. inside catch block again re execute same lines of code/another method. take care of issue.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -