I am working on a project to test web application. There is requirement to get the full content of page as HMTL.
How to get page html in selenium webdriver?
Here is code code that you can use:
WebDriver driver = new ChromeDriver(chromeOptions); driver.get("http://www.google.com"); String pageSource = driver.getPageSource();