I am trying to find some elements, from a web page which is continuously refreshing for 4 seconds periodically. So when I am trying to detect some of the page elements after parsing the web page,it is throwing exception as :
"org.openqa.selenium.StaleElementReferenceException: Element is no longer attached to the DOM".
As the page is getting refreshed periodically,the DOM
is getting changed. I can parse only few elements which is located at the upper portion of the DOM structure, because as the page is getting refreshed the internal DOM parser may not able to go inside after certain depth. So in this situation I am not able to traverse the whole DOM,won't able to fetch the lower portion of the DOM.
So please guys kindly,give me a solution so that I can parse the whole page,can traverse the entire DOM tree.
Thanks in advance,