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
Post a Comment