Chrome cannot work in Selenium Webdriver. i am using selenium 3.0.1 chrome v-54.0

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");

Starting ChromeDriver 2.24.417424 (c5c5ea873213ee72e3d0929b47482681555340c3) on port 11320 Only local connections are allowed. October 19, 2016 10:07:22 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: attempting to listen to a bi-dialect, assuming Postel law is valid at the remote end October 19, 2016 10:08:22 org.openqa.selenium. remote.ProtocolHandshake createSession INFO: dialect detected: OSS An exception occurred in the stream "main" org.openqa.selenium.NoSuchSessionException: there is no such session (Driver information: chromedriver = 2.24.417424 (c5c5ea873213ee72e3d0929b474826815553-4534534543843553553-453) generic x86_64) (ATTENTION: the server did not provide any information about the stack) Duration of the command or timeout: 9 milliseconds Build information: version: "unknown", version: "350cf60 ", time:" 2016-10-13 10:43:56 -0700 "Driver Information: org.openqa.selenium.chrome.ChromeDriver Features [{message = unknown error: Chrome failed to start: anonymously anonymous

+4
1

, Linux-, "chromedriver" ( .exe) . , chrome, "chromedriver" (, 64 ).

0

Source: https://habr.com/ru/post/1658156/


All Articles