You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/io/github/seleniumquery/browser/driver/SeleniumQueryDriver.java
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -105,19 +105,20 @@ public FirefoxDriverBuilder useFirefox() {
105
105
/**
106
106
* Sets {@link org.openqa.selenium.chrome.ChromeDriver} as the {@link WebDriver} for this seleniumQuery browser instance.
107
107
* <p>
108
-
* Note that the Chrome driver needs a <i>server executable</i> to bridge Selenium to the browser and as such
109
-
* Selenium must know the path to it. It is a file usually named <code>chromedriver.exe</code> and its latest
110
-
* version can be downloaded from
111
-
* <a href="http://chromedriver.storage.googleapis.com/index.html">ChromeDriver's download page</a> -- or check
108
+
* Note that the Chrome needs a <i>ChromeDriver Server executable</i> to bridge Selenium to the browser and as such
109
+
* Selenium must know the path to it. It is a file usually named <code>chromedriver.exe</code> (windows) or <code>chromedriver</code> (linix)
110
+
* and its latest version can be downloaded from
111
+
* <a href="http://chromedriver.storage.googleapis.com/index.html">ChromeDriver's download page</a>. You can also check
112
112
* <a href="https://github.com/seleniumQuery/seleniumQuery/wiki/seleniumQuery-and-Chrome-Driver">seleniumQuery and Chrome Driver wiki page</a>
113
-
* for the latest info.
113
+
* for the other info.
114
114
* </p>
115
115
* <br>
116
-
* <b> This method looks for the <code>chromedriver.exe</code> at the CLASSPATH (tipically at a {@code resources/} folder of a
117
-
* maven project), at the "webdriver.chrome.driver" system property or at the system's PATH variable.</b>
116
+
* <b> This method looks for the ChromeDriver executable (<code>chromedriver.exe</code>/<code>chromedriver</code>) at the CLASSPATH
117
+
* (tipically at a {@code resources/} folder of a maven project), at the "webdriver.chrome.driver" system property or at the system's PATH variable.</b>
Copy file name to clipboardExpand all lines: src/main/java/io/github/seleniumquery/browser/driver/builders/ChromeDriverBuilder.java
+12-10Lines changed: 12 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -27,19 +27,20 @@ public class ChromeDriverBuilder extends DriverBuilder<ChromeDriverBuilder> {
27
27
"(1) on the classpath of this project; or\n" +
28
28
"(2) on the path specified by the \"" + CHROME_DRIVER_EXECUTABLE_SYSTEM_PROPERTY + "\" system property; or\n" +
29
29
"(3) on a folder in the system's PATH variable; or\n" +
30
-
"(4) wherever and set the path via $.driver().useChrome().withPathToChromeDriverExe(\"other/path/to/chromedriver.exe\").\n" +
30
+
"(4) wherever and set the path via $.driver().useChrome().withPathToChromeDriver(\"other/path/to/chromedriver<.exe>\").\n" +
31
31
"For more information, see https://github.com/seleniumQuery/seleniumQuery/wiki/seleniumQuery-and-Chrome-Driver";
32
32
33
33
privatestaticfinalStringBAD_PATH_PROVIDED_EXCEPTION_MESSAGE = "The ChromeDriver Server executable file was not found (or is a directory) at \"%s\"." + EXCEPTION_MESSAGE;
34
34
35
35
staticStringCHROMEDRIVER_EXE = "chromedriver.exe"; // package visibility so it can be changed during test
36
36
37
37
38
-
privateStringcustomPathToChromeDriverExe;
38
+
privateStringcustomPathToChromeDriver;
39
39
privateChromeOptionschromeOptions;
40
40
41
41
/**
42
42
* Sets specific {@link ChromeOptions} options to be used in the {@link ChromeDriver}.
43
+
*
43
44
* @param chromeOptions Options to be used.
44
45
* @return A self reference, allowing further configuration.
45
46
*
@@ -51,18 +52,19 @@ public ChromeDriverBuilder withOptions(ChromeOptions chromeOptions) {
51
52
}
52
53
53
54
/**
54
-
* Configures the builder to look for the <code>chromedriver.exe</code> at the path specified by the argument.
55
+
* Configures the builder to look for the ChromeDriver executable (<code>chromedriver.exe</code>/<code>chromedriver</code>) at
56
+
* the specified path.
55
57
*
56
-
* @param pathToChromeDriverExe The path to the executable server file. Examples:
57
-
* <code>"C:\\myFiles\\chromedriver.exe"</code>; can be relative, as in <code>"..\\stuff\\chromedriver.exe"</code>;
58
-
* does not matter if the executable was renamed, such as <code>"drivers\\chrome\\chromedriver_v12345.exe"</code>.
58
+
* @param pathToChromeDriver The path to the executable server file. Examples:
59
+
* <code>"C:\myFiles\chromedriver.exe"</code>; can be relative, as in <code>"..\stuff\chromedriver"</code>;
60
+
* does not matter if the executable was renamed, such as <code>"wherever/myself/drivers/chromedriver_v12345.exe"</code>.
59
61
*
60
62
* @return A self reference, allowing further configuration.
0 commit comments