I'm trying to use HtmlAgilityPack with Selenium. I want to make some test, but don't know how to load HtmlDocument from Selenium Driver.PageSource String. Any help? (c# or vb.net)
Here the code...
Dim driver As IWebDriver
Dim ChromeOptions As New ChromeOptions
driver = New ChromeDriver("C:\ChromeDriver", ChromeOptions)
driver.Navigate.GoToUrl("www.Google.com")
Dim doc As New HtmlDocument
Dim wb As New HtmlWeb
doc = wb.LoadFromBrowser(driver.PageSource)
N.B. My Question regard interaction between Selenium and HtmlAgilityPack.