org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start while initiating Chrome browser through SeleniumTimed out waiting for driver server to startSelenium chromedriver giving org.openqa.selenium.os.UnixProcess errorSelenium Chrome Driver throws an exceptionSelenium 3.7 webdriver Error: Timed out waiting for driver server to startSelenium WebDriver- Chrome TimeOut?Invalid Port exiting: chrome driver error saleniumIn console launching chrome but unable to see the launched window in my local machineSelenium Chrome Browser org.openqa.selenium.WebDriverException: Timed out waiting for driver server to startHow to solve sessionnotcreated issue in Selenium webdriver for Chrome browser?org.openqa.selenium.os.UnixProcess checkForError - Selenium doesn't work over jenkins (openshift linux - chrome slave)
Are taller landing gear bad for aircraft, particulary large airliners?
Can the electrostatic force be infinite in magnitude?
What (else) happened July 1st 1858 in London?
Can a controlled ghast be a leader of a pack of ghouls?
Can the harmonic series explain the origin of the major scale?
Superhero words!
Who must act to prevent Brexit on March 29th?
A car is moving at 40 km/h. A fly at 100 km/h, starts from wall towards the car(20 km away)flies to car and back. How many trips can it make?
Invariance of results when scaling explanatory variables in logistic regression, is there a proof?
A social experiment. What is the worst that can happen?
Pronouncing Homer as in modern Greek
Is there enough fresh water in the world to eradicate the drinking water crisis?
Have I saved too much for retirement so far?
Meta programming: Declare a new struct on the fly
Organic chemistry Iodoform Reaction
I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?
What is Sitecore Managed Cloud?
What was required to accept "troll"?
Calculating the number of days between 2 dates in Excel
Is a naturally all "male" species possible?
Is there an Impartial Brexit Deal comparison site?
Why are all the doors on Ferenginar (the Ferengi home world) far shorter than the average Ferengi?
Is infinity mathematically observable?
Simple image editor tool to draw a simple box/rectangle in an existing image
org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start while initiating Chrome browser through Selenium
Timed out waiting for driver server to startSelenium chromedriver giving org.openqa.selenium.os.UnixProcess errorSelenium Chrome Driver throws an exceptionSelenium 3.7 webdriver Error: Timed out waiting for driver server to startSelenium WebDriver- Chrome TimeOut?Invalid Port exiting: chrome driver error saleniumIn console launching chrome but unable to see the launched window in my local machineSelenium Chrome Browser org.openqa.selenium.WebDriverException: Timed out waiting for driver server to startHow to solve sessionnotcreated issue in Selenium webdriver for Chrome browser?org.openqa.selenium.os.UnixProcess checkForError - Selenium doesn't work over jenkins (openshift linux - chrome slave)
I am unable to enter the URL in the chrome browser as currently the browser is getting opened but the URL is not getting entered automatically.
Their is some issue of browser probably.
The code is:
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.WebDriverWait;
public class OpenBidAssist
public static void main(String[] args)
System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
System.out.println("TEST1");
WebDriver driver=new ChromeDriver();
WebDriverWait wait=new WebDriverWait(driver, 20);
System.out.println("TEST2");
driver.get("https://stg-cipher-fe.ofbusiness.in/");
System.out.println("TEST3");
The Error i am getting is:
TEST1
Created new window in existing browser session.
Exception in thread "main" org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:48'
System info: host: 'ofbl219-Latitude-3480', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-49-generic', java.version: '1.8.0_181'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:202)
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:188)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:123)
at OpenBidAssist.main(OpenBidAssist.java:13)
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:11320/status] to be available after 20006 ms
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:197)
... 9 more
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:156)
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75)
... 10 more
Can anyone help me in it.
Thanks in advance,
java selenium
add a comment |
I am unable to enter the URL in the chrome browser as currently the browser is getting opened but the URL is not getting entered automatically.
Their is some issue of browser probably.
The code is:
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.WebDriverWait;
public class OpenBidAssist
public static void main(String[] args)
System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
System.out.println("TEST1");
WebDriver driver=new ChromeDriver();
WebDriverWait wait=new WebDriverWait(driver, 20);
System.out.println("TEST2");
driver.get("https://stg-cipher-fe.ofbusiness.in/");
System.out.println("TEST3");
The Error i am getting is:
TEST1
Created new window in existing browser session.
Exception in thread "main" org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:48'
System info: host: 'ofbl219-Latitude-3480', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-49-generic', java.version: '1.8.0_181'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:202)
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:188)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:123)
at OpenBidAssist.main(OpenBidAssist.java:13)
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:11320/status] to be available after 20006 ms
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:197)
... 9 more
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:156)
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75)
... 10 more
Can anyone help me in it.
Thanks in advance,
java selenium
add a comment |
I am unable to enter the URL in the chrome browser as currently the browser is getting opened but the URL is not getting entered automatically.
Their is some issue of browser probably.
The code is:
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.WebDriverWait;
public class OpenBidAssist
public static void main(String[] args)
System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
System.out.println("TEST1");
WebDriver driver=new ChromeDriver();
WebDriverWait wait=new WebDriverWait(driver, 20);
System.out.println("TEST2");
driver.get("https://stg-cipher-fe.ofbusiness.in/");
System.out.println("TEST3");
The Error i am getting is:
TEST1
Created new window in existing browser session.
Exception in thread "main" org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:48'
System info: host: 'ofbl219-Latitude-3480', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-49-generic', java.version: '1.8.0_181'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:202)
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:188)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:123)
at OpenBidAssist.main(OpenBidAssist.java:13)
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:11320/status] to be available after 20006 ms
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:197)
... 9 more
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:156)
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75)
... 10 more
Can anyone help me in it.
Thanks in advance,
java selenium
I am unable to enter the URL in the chrome browser as currently the browser is getting opened but the URL is not getting entered automatically.
Their is some issue of browser probably.
The code is:
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.WebDriverWait;
public class OpenBidAssist
public static void main(String[] args)
System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
System.out.println("TEST1");
WebDriver driver=new ChromeDriver();
WebDriverWait wait=new WebDriverWait(driver, 20);
System.out.println("TEST2");
driver.get("https://stg-cipher-fe.ofbusiness.in/");
System.out.println("TEST3");
The Error i am getting is:
TEST1
Created new window in existing browser session.
Exception in thread "main" org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:48'
System info: host: 'ofbl219-Latitude-3480', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-49-generic', java.version: '1.8.0_181'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:202)
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:188)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:123)
at OpenBidAssist.main(OpenBidAssist.java:13)
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:11320/status] to be available after 20006 ms
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:197)
... 9 more
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:156)
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75)
... 10 more
Can anyone help me in it.
Thanks in advance,
java selenium
java selenium
edited Mar 8 at 8:28
DebanjanB
45.1k134588
45.1k134588
asked Mar 8 at 7:50
RAHULRAHUL
56129
56129
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
replace System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
with the path of exe file like System.setProperty("webdriver.chrome.driver", "your path of Driver/chromedriver.exe");
New Code:- public static void main(String[] args) System.setProperty("webdriver.chrome.driver", "/opt/google/chrome/google-chrome"); WebDriver driver=new ChromeDriver(); System.out.println("TEST2"); driver.get("stg-cipher-fe.ofbusiness.in/"); } Error:- "Failed to set referrer policy: The value 'strict-origin' is not one of 'always', 'default', 'never', 'no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-crossorigin', or 'unsafe-url'. The referrer policy has been left unchanged.", source: google.com/_/chrome/newtab?espv=2&ie=UTF-8
– RAHUL
Mar 8 at 8:11
add a comment |
This error message...
Exception in thread "main" org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
...implies that your program was unable to initiate/spawn a new WebDriver i.e. ChromeDriver process.
Your main issue is the Value you have passed to the System.setProperty() line.
Instead of the absolute path of the Google Chrome client binary, you need to pass the absolute path of the ChromeDriver. So you need to:
Change:
"/usr/bin/google-chrome"With:
"/path/to/chromedriver"
Essentially, you need to:
Change:
System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");With:
System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");
Note: You can download the relevant version of ChromeDriver from ChromeDriver - WebDriver for Chrome
add a comment |
It is very clear from your code that you are trying to create ChromeDriver but the path to the executable is not correct.
Download the latest ChromeDriver executable from the chromedriver downloads
Then replace the
System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
with
System.setProperty("webdriver.chrome.driver", "/path to chromedriver/chromedriver.exe");
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55058844%2forg-openqa-selenium-webdriverexception-timed-out-waiting-for-driver-server-to-s%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
replace System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
with the path of exe file like System.setProperty("webdriver.chrome.driver", "your path of Driver/chromedriver.exe");
New Code:- public static void main(String[] args) System.setProperty("webdriver.chrome.driver", "/opt/google/chrome/google-chrome"); WebDriver driver=new ChromeDriver(); System.out.println("TEST2"); driver.get("stg-cipher-fe.ofbusiness.in/"); } Error:- "Failed to set referrer policy: The value 'strict-origin' is not one of 'always', 'default', 'never', 'no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-crossorigin', or 'unsafe-url'. The referrer policy has been left unchanged.", source: google.com/_/chrome/newtab?espv=2&ie=UTF-8
– RAHUL
Mar 8 at 8:11
add a comment |
replace System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
with the path of exe file like System.setProperty("webdriver.chrome.driver", "your path of Driver/chromedriver.exe");
New Code:- public static void main(String[] args) System.setProperty("webdriver.chrome.driver", "/opt/google/chrome/google-chrome"); WebDriver driver=new ChromeDriver(); System.out.println("TEST2"); driver.get("stg-cipher-fe.ofbusiness.in/"); } Error:- "Failed to set referrer policy: The value 'strict-origin' is not one of 'always', 'default', 'never', 'no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-crossorigin', or 'unsafe-url'. The referrer policy has been left unchanged.", source: google.com/_/chrome/newtab?espv=2&ie=UTF-8
– RAHUL
Mar 8 at 8:11
add a comment |
replace System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
with the path of exe file like System.setProperty("webdriver.chrome.driver", "your path of Driver/chromedriver.exe");
replace System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
with the path of exe file like System.setProperty("webdriver.chrome.driver", "your path of Driver/chromedriver.exe");
answered Mar 8 at 7:52
Waqar NadirWaqar Nadir
30328
30328
New Code:- public static void main(String[] args) System.setProperty("webdriver.chrome.driver", "/opt/google/chrome/google-chrome"); WebDriver driver=new ChromeDriver(); System.out.println("TEST2"); driver.get("stg-cipher-fe.ofbusiness.in/"); } Error:- "Failed to set referrer policy: The value 'strict-origin' is not one of 'always', 'default', 'never', 'no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-crossorigin', or 'unsafe-url'. The referrer policy has been left unchanged.", source: google.com/_/chrome/newtab?espv=2&ie=UTF-8
– RAHUL
Mar 8 at 8:11
add a comment |
New Code:- public static void main(String[] args) System.setProperty("webdriver.chrome.driver", "/opt/google/chrome/google-chrome"); WebDriver driver=new ChromeDriver(); System.out.println("TEST2"); driver.get("stg-cipher-fe.ofbusiness.in/"); } Error:- "Failed to set referrer policy: The value 'strict-origin' is not one of 'always', 'default', 'never', 'no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-crossorigin', or 'unsafe-url'. The referrer policy has been left unchanged.", source: google.com/_/chrome/newtab?espv=2&ie=UTF-8
– RAHUL
Mar 8 at 8:11
New Code:- public static void main(String[] args) System.setProperty("webdriver.chrome.driver", "/opt/google/chrome/google-chrome"); WebDriver driver=new ChromeDriver(); System.out.println("TEST2"); driver.get("stg-cipher-fe.ofbusiness.in/"); } Error:- "Failed to set referrer policy: The value 'strict-origin' is not one of 'always', 'default', 'never', 'no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-crossorigin', or 'unsafe-url'. The referrer policy has been left unchanged.", source: google.com/_/chrome/newtab?espv=2&ie=UTF-8
– RAHUL
Mar 8 at 8:11
New Code:- public static void main(String[] args) System.setProperty("webdriver.chrome.driver", "/opt/google/chrome/google-chrome"); WebDriver driver=new ChromeDriver(); System.out.println("TEST2"); driver.get("stg-cipher-fe.ofbusiness.in/"); } Error:- "Failed to set referrer policy: The value 'strict-origin' is not one of 'always', 'default', 'never', 'no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-crossorigin', or 'unsafe-url'. The referrer policy has been left unchanged.", source: google.com/_/chrome/newtab?espv=2&ie=UTF-8
– RAHUL
Mar 8 at 8:11
add a comment |
This error message...
Exception in thread "main" org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
...implies that your program was unable to initiate/spawn a new WebDriver i.e. ChromeDriver process.
Your main issue is the Value you have passed to the System.setProperty() line.
Instead of the absolute path of the Google Chrome client binary, you need to pass the absolute path of the ChromeDriver. So you need to:
Change:
"/usr/bin/google-chrome"With:
"/path/to/chromedriver"
Essentially, you need to:
Change:
System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");With:
System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");
Note: You can download the relevant version of ChromeDriver from ChromeDriver - WebDriver for Chrome
add a comment |
This error message...
Exception in thread "main" org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
...implies that your program was unable to initiate/spawn a new WebDriver i.e. ChromeDriver process.
Your main issue is the Value you have passed to the System.setProperty() line.
Instead of the absolute path of the Google Chrome client binary, you need to pass the absolute path of the ChromeDriver. So you need to:
Change:
"/usr/bin/google-chrome"With:
"/path/to/chromedriver"
Essentially, you need to:
Change:
System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");With:
System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");
Note: You can download the relevant version of ChromeDriver from ChromeDriver - WebDriver for Chrome
add a comment |
This error message...
Exception in thread "main" org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
...implies that your program was unable to initiate/spawn a new WebDriver i.e. ChromeDriver process.
Your main issue is the Value you have passed to the System.setProperty() line.
Instead of the absolute path of the Google Chrome client binary, you need to pass the absolute path of the ChromeDriver. So you need to:
Change:
"/usr/bin/google-chrome"With:
"/path/to/chromedriver"
Essentially, you need to:
Change:
System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");With:
System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");
Note: You can download the relevant version of ChromeDriver from ChromeDriver - WebDriver for Chrome
This error message...
Exception in thread "main" org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
...implies that your program was unable to initiate/spawn a new WebDriver i.e. ChromeDriver process.
Your main issue is the Value you have passed to the System.setProperty() line.
Instead of the absolute path of the Google Chrome client binary, you need to pass the absolute path of the ChromeDriver. So you need to:
Change:
"/usr/bin/google-chrome"With:
"/path/to/chromedriver"
Essentially, you need to:
Change:
System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");With:
System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");
Note: You can download the relevant version of ChromeDriver from ChromeDriver - WebDriver for Chrome
edited Mar 8 at 9:00
answered Mar 8 at 8:29
DebanjanBDebanjanB
45.1k134588
45.1k134588
add a comment |
add a comment |
It is very clear from your code that you are trying to create ChromeDriver but the path to the executable is not correct.
Download the latest ChromeDriver executable from the chromedriver downloads
Then replace the
System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
with
System.setProperty("webdriver.chrome.driver", "/path to chromedriver/chromedriver.exe");
add a comment |
It is very clear from your code that you are trying to create ChromeDriver but the path to the executable is not correct.
Download the latest ChromeDriver executable from the chromedriver downloads
Then replace the
System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
with
System.setProperty("webdriver.chrome.driver", "/path to chromedriver/chromedriver.exe");
add a comment |
It is very clear from your code that you are trying to create ChromeDriver but the path to the executable is not correct.
Download the latest ChromeDriver executable from the chromedriver downloads
Then replace the
System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
with
System.setProperty("webdriver.chrome.driver", "/path to chromedriver/chromedriver.exe");
It is very clear from your code that you are trying to create ChromeDriver but the path to the executable is not correct.
Download the latest ChromeDriver executable from the chromedriver downloads
Then replace the
System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
with
System.setProperty("webdriver.chrome.driver", "/path to chromedriver/chromedriver.exe");
answered Mar 8 at 11:22
Seetaram HegdeSeetaram Hegde
415
415
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55058844%2forg-openqa-selenium-webdriverexception-timed-out-waiting-for-driver-server-to-s%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown