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