pageobjects

StaleElementReference Exception in PageFactory

一曲冷凌霜 提交于 2019-11-25 21:43:09
问题 I am trying to learn the PageFactory model. I understood the fact that when we do a initElements , the WebElements are located. Say for example, I click on a webelement and because of which there is a change in one of the other webelements in DOM. Now, obviously I would get a StaleElementReferenceException here. How would I resolve this issue? Should I find that specific WebElement again knowing the fact that there can be a change in the WebElement\'s properties in the DOM? or is there an