I am using Protractor to run my Test and want to capture the source of the Whole Page for debugging purpose. Using Selenium WebDriver
How do i get the Source of the Page (content similar to View/Source when manually viewing it)
I am not sure if you are looking for the source code of the page currently opened by driver, if Yes, you can use below method to get the source code.
System.out.println(driver.getPageSource());
hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With