Since we’ve moved to UIautomator2 framework , “StaleElementReferenceException” makes our execution very sad
I was wondering how do you workaround this ?
The obvious solution “not to cache” the element and each time execute driver.findElementBy… is standing against the PO concept …
All our elements are Page’s properties annotated with @FindBy , if we will look for them manually each time they are needed , we are missing the entire concept…
I was wonder if there a way to make a refresh for the PageObject and by that to refresh all the cached elements ?