Python Selenium: How to get fresh data from the page get refreshed periodically?
Make sure to call findElement() again after waiting, bc otherwise you might not get a fresh instance. Or use page factory, which will get a fresh copy of the WebElement for you every time the instance is accessed.
I have already written a script that opens Firefox with a URL, scrape data and close. The page belongs to a gaming site where page refresh contents via Ajax.
Now one way is to fetch those AJAX requests and get data or refresh page after certain period of time within open browser.
For the later case, how should I do? Should I call the method after certain time period or what?