|
13 | 13 | */ |
14 | 14 | public class ChromeDriverBuilder extends DriverBuilder<ChromeDriverBuilder> { |
15 | 15 |
|
16 | | - private String custoPathToChromeDriverExe; |
| 16 | + private String customPathToChromeDriverExe; |
17 | 17 |
|
18 | 18 | /** |
19 | | - * Sets <b>Chrome</b> as the default {@link WebDriver} for seleniumQuery. |
20 | | - * <p> |
21 | | - * Note that the Chrome driver needs a <i>server executable</i> to bridge Selenium to the browser and as such |
22 | | - * Selenium must have the path to it. It is a file usually named <code>chromedriver.exe</code> and its latest |
23 | | - * version can be downloaded from <a href="http://chromedriver.storage.googleapis.com/index.html">ChromeDriver's |
24 | | - * download page</a> -- or check <a |
25 | | - * href="https://github.com/seleniumQuery/seleniumQuery/wiki/seleniumQuery-and-Chrome-as-WebDriver-Browser"> |
26 | | - * seleniumQuery and Chrome as WebDriver/Browser wiki page</a> for the latest info. |
27 | | - * </p> |
28 | | - * <p><b> This method looks for the chromedriver.exe at the path specified by the <code>pathToChromeDriverExe</code> |
29 | | - * argument.</b></p> |
30 | | - * <p> |
31 | | - * For more info, see <a href="https://code.google.com/p/selenium/wiki/ChromeDriver">ChromeDriver's official wiki</a>. |
32 | | - * </p> |
| 19 | + * Looks for the chromedriver.exe at the path specified by the <code>pathToChromeDriverExe</code> |
| 20 | + * argument. |
33 | 21 | * |
34 | 22 | * @param pathToChromeDriverExe The full path to the executable server file. Examples: |
35 | 23 | * <code>"C:\\myFiles\\chromedriver.exe"</code>; can be relative, as in <code>"..\\stuff\\chromedriver.exe"</code>, |
36 | 24 | * does not matter if the .exe was renamed, such as <code>"drivers\\chrome\\chromedriver_v12345.exe"</code>. |
37 | 25 | */ |
38 | 26 | public ChromeDriverBuilder withPathToChromeDriverExe(String pathToChromeDriverExe) { |
39 | | - this.custoPathToChromeDriverExe = pathToChromeDriverExe; |
| 27 | + this.customPathToChromeDriverExe = pathToChromeDriverExe; |
40 | 28 | return this; |
41 | 29 | } |
42 | 30 |
|
43 | 31 | @Override |
44 | 32 | protected WebDriver build() { |
45 | | - if (this.custoPathToChromeDriverExe != null) { |
46 | | - return instantiateChromeDriverWithPath(this.custoPathToChromeDriverExe); |
| 33 | + if (this.customPathToChromeDriverExe != null) { |
| 34 | + return instantiateChromeDriverWithPath(this.customPathToChromeDriverExe); |
47 | 35 | } |
48 | 36 | return instantiateChromeDriverWithoutPath(); |
49 | 37 | } |
|
0 commit comments