Selenium Page_source Truncated
Solution 1:
From the doc (https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/remote/RemoteWebDriver.html#getPageSource() )
Description copied from interface: WebDriver Get the source of the last loaded page. If the page has been modified after loading (for example, by Javascript) there is no guarantee that the returned text is that of the modified page. Please consult the documentation of the particular driver being used to determine whether the returned text reflects the current state of the page or the text last sent by the web server. The page source returned is a representation of the underlying DOM: do not expect it to be formatted or escaped in the same way as the response sent from the web server. Think of it as an artist's impression.
So you may not be getting the entire html of the DOM as you are expecting. To do this you may have to fetch it in other ways such as the one metioned in this comment: Python Selenium accessing HTML source
Post a Comment for "Selenium Page_source Truncated"