when doing any requests with driver.findElement() or element.getText(), etc. I suppose new getPageSource() is being called. Is that correct?
What I want to ask is, is there any way to use the same pageSource for next calls? In case when I have a static content, doing nothing but to read element’s labels - I want to save time not calling pageSource all over again, but use the same one (because i know, nothing on the screen changed).
Would be great to have a feature, e.g.:
driver.freezePageSource(true); //Do the reading driver.freezePageSource(false); //Do some other actions that will actually change structure of the pageSource
I don’t know, this might not be possible. Enlighten me, please
Any thoughts about that?