Answer the question
In order to leave comments, you need to log in
How to convert a page into Document (Java) format using selenium webdriver?
i have code
System.setProperty("webdriver.gecko.driver", "C:\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();
String baseUrl = " https://google.com ";
driver.get(baseUrl);
String str = driver.getPageSource();
System.out.println(var);
System.exit(0);
driver.close();
how can i make str be a Document? or element?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question