我正在尝试运行一个简单的URL以便在chrome浏览器中入门,但仅获取“ data:”,我的JDK,硒和浏览器都是最新版本。
使用的Chrome浏览器-版本76.0.3809.100(32位) Java-JDK 1.8 已使用Chromedriver-ChromeDriver 76.0.3809.126
使用的代码
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
//import org.openga.selenium.Webdriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
public class CLMTWorkflow {
public static void main(String[] args) {
//System.setProperty("webdriver.ie.driver","H:\\Selenium Prerequisite\\Executables\\IEDriverServer.exe");
//InternetExplorerDriver driver = new InternetExplorerDriver();
//System.setProperty("webdriver.gecko.driver", "H:\\Selenium Prerequisite\\Executables\\geckodriver.exe");
//FirefoxDriver driver = new FirefoxDriver();
System.setProperty("webdriver.chrome.driver", "H:\\Selenium Prerequisite\\Executables\\chromedriver.exe");
ChromeDriver driver = new ChromeDriver();
driver.get("https://www.myntra.com/");
}
}