Resolve Selemium Error Could not start a new session. Possible causes is invalid address of the remote server or browser start-up failure

Source: Internet
Author: User

About Exception in thread ' main ' org.openqa.selenium.remote.UnreachableBrowserException:Could not start a new session. Possible causes is invalid address of the remote server or browser start-up failure.

There is less webdriver.chrome.driver in the code "," C:/selemiumlib/chromedriver.exe

should be for this

        System.setproperty ("Webdriver.chrome.driver", "C:/selemiumlib/chromedriver.exe");     // system.setproperty ("Webdriver.chrome.bin", "C:/Program Files (x86)/google/chrome/application/chrome.exe");        System.setproperty ("Webdriver.chrome.bin", "C:/users/admin/appdata/local/google/chrome/application/chrome.exe" );     New chromedriver ();    Driver.manage (). Timeouts (). implicitlywait (5, timeunit.seconds);    Driver.get ("http://www.baidu.com");    Driver.manage (). Timeouts (). implicitlywait (timeunit.seconds);    Driver.close ();

System.setproperty ("Webdriver.chrome.driver", "C:/selemiumlib/chromedriver.exe");

Do not add this line can actually, but note that the system chrome should have only one, or error

are working on a system that has different versions of Chrome's Calling method

Resolve Selemium Error Could not start a new session. Possible causes is invalid address of the remote server or browser start-up failure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.