i try like this
package jsoup;
import java.awt.Desktop;
import java.net.URI;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class login_test {
public static void main(String args[]) throws Exception {
// Create Desktop object
Desktop d = Desktop.getDesktop();
// Browse a URL, say google.com
d.browse(new URI("https://google.com/"));
d.browse(new URI("http://twitch.tv/"));
Document doc = Jsoup.connect(URL).get() <--it's not work
System.out.println(doc);
}
}
l don’t know exactly but it automatically signed in the page(http://twitch.tv/)
In this moment, i have another question
after signed in the page how to i get the page source??
i want it to get some page source(like HTML code for page)<=