Selenium WebDriver Python reload html without refreshing the page
问题 I have a page with self-refreshing content (via WebSocket) like this one. While the content is constantly changing my firefox webdriver can only see the initial content. I could get the fresh one by refreshing the page by driver.navigate.refresh() but this causes unnecessary traffic besides in the Firefox window the new content already appear. My question is: Can I get the fresh html as I can observe in the Firefox window without reloading the whole page? 回答1: If the page contents change over