Java – chrome cannot run in selenium webdriver I use selenium 3.0 1 chrome v-54.0

public class sikuli {
public class sikuli {

    public static void main(String[] args) throws Exception {
        //Screen screen=new Screen();
        //screen.click("//home//exeter//Pictures//googlechrome.png");
        System.setProperty("webdriver.chrome.driver","//home//exeter//Documents//chromedriver");
        WebDriver driver=new ChromeDriver();
        driver.get("https://mail.google.com");

Solution

It looks like you're running on a Linux machine, so "Chrome River" (without. Exe) should be fine Just make sure you have the latest chrome and the latest chrome driver version, and you also have the correct "chromedriver" file (file on 64 bit)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>