Skip to content

Commit 0e7bd2c

Browse files
committed
[java] Fixing JavaDocs for driver classes
1 parent 15319c0 commit 0e7bd2c

File tree

6 files changed

+15
-16
lines changed

6 files changed

+15
-16
lines changed

java/src/org/openqa/selenium/chrome/ChromeDriverService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.openqa.selenium.Capabilities;
3434
import org.openqa.selenium.WebDriverException;
3535
import org.openqa.selenium.chromium.ChromiumDriverLogLevel;
36+
import org.openqa.selenium.remote.service.DriverFinder;
3637
import org.openqa.selenium.remote.service.DriverService;
3738

3839
/** Manages the life and death of a ChromeDriver server. */
@@ -128,8 +129,8 @@ public Capabilities getDefaultDriverOptions() {
128129
/**
129130
* Configures and returns a new {@link ChromeDriverService} using the default configuration. In
130131
* this configuration, the service will use the ChromeDriver executable identified by {@link
131-
* org.openqa.selenium.remote.service.DriverFinder#getResult(DriverService, Capabilities)}. Each
132-
* service created by this method will be configured to use a free port on the current system.
132+
* DriverFinder#getDriverPath()} (DriverService, Capabilities)}. Each service created by this
133+
* method will be configured to use a free port on the current system.
133134
*
134135
* @return A new ChromeDriverService using the default configuration.
135136
*/

java/src/org/openqa/selenium/edge/EdgeDriverService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import org.openqa.selenium.Capabilities;
3232
import org.openqa.selenium.WebDriverException;
3333
import org.openqa.selenium.chromium.ChromiumDriverLogLevel;
34+
import org.openqa.selenium.remote.service.DriverFinder;
3435
import org.openqa.selenium.remote.service.DriverService;
3536

3637
/** Manages the life and death of the MSEdgeDriver */
@@ -117,8 +118,8 @@ public Capabilities getDefaultDriverOptions() {
117118
/**
118119
* Configures and returns a new {@link EdgeDriverService} using the default configuration. In this
119120
* configuration, the service will use the MSEdgeDriver executable identified by the {@link
120-
* org.openqa.selenium.remote.service.DriverFinder#getResult(DriverService, Capabilities)}. Each
121-
* service created by this method will be configured to use a free port on the current system.
121+
* DriverFinder#getDriverPath()} (DriverService, Capabilities)}. Each service created by this
122+
* method will be configured to use a free port on the current system.
122123
*
123124
* @return A new EdgeDriverService using the default configuration.
124125
*/

java/src/org/openqa/selenium/ie/InternetExplorerDriverService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import java.util.Map;
3232
import org.openqa.selenium.Capabilities;
3333
import org.openqa.selenium.WebDriverException;
34+
import org.openqa.selenium.remote.service.DriverFinder;
3435
import org.openqa.selenium.remote.service.DriverService;
3536

3637
/** Manages the life and death of an IEDriverServer. */
@@ -104,8 +105,7 @@ public Capabilities getDefaultDriverOptions() {
104105
/**
105106
* Configures and returns a new {@link InternetExplorerDriverService} using the default
106107
* configuration. In this configuration, the service will use the IEDriverServer executable
107-
* identified by the {@link
108-
* org.openqa.selenium.remote.service.DriverFinder#getResult(DriverService, Capabilities)}. Each
108+
* identified by the {@link DriverFinder#getDriverPath()} (DriverService, Capabilities)}. Each
109109
* service created by this method will be configured to use a free port on the current system.
110110
*
111111
* @return A new InternetExplorerDriverService using the default configuration.

java/src/org/openqa/selenium/remote/NoSuchDriverException.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,10 @@
1717

1818
package org.openqa.selenium.remote;
1919

20-
import org.openqa.selenium.Capabilities;
2120
import org.openqa.selenium.WebDriverException;
22-
import org.openqa.selenium.remote.service.DriverService;
21+
import org.openqa.selenium.remote.service.DriverFinder;
2322

24-
/**
25-
* Thrown by {@link org.openqa.selenium.remote.service.DriverFinder#getResult(DriverService,
26-
* Capabilities)}.
27-
*/
23+
/** Thrown by {@link DriverFinder#getDriverPath()} (DriverService, Capabilities)}. */
2824
public class NoSuchDriverException extends WebDriverException {
2925

3026
private static final String SUPPORT_URL = BASE_SUPPORT_URL + "/driver_location/";

java/src/org/openqa/selenium/safari/SafariDriverService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import org.openqa.selenium.Capabilities;
3636
import org.openqa.selenium.WebDriverException;
3737
import org.openqa.selenium.net.PortProber;
38+
import org.openqa.selenium.remote.service.DriverFinder;
3839
import org.openqa.selenium.remote.service.DriverService;
3940

4041
/** Manages the life and death of SafariDriver. */
@@ -95,8 +96,8 @@ protected Capabilities getDefaultDriverOptions() {
9596
/**
9697
* Configures and returns a new {@link SafariDriverService} using the default configuration. In
9798
* this configuration, the service will use the SafariDriver executable identified by the {@link
98-
* org.openqa.selenium.remote.service.DriverFinder#getResult(DriverService, Capabilities)}. Each
99-
* service created by this method will be configured to use a free port on the current system.
99+
* DriverFinder#getDriverPath()} (DriverService, Capabilities)}. Each service created by this
100+
* method will be configured to use a free port on the current system.
100101
*
101102
* @return A new SafariDriverService using the default configuration.
102103
*/

java/src/org/openqa/selenium/safari/SafariTechPreviewDriverService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import org.openqa.selenium.Capabilities;
3636
import org.openqa.selenium.WebDriverException;
3737
import org.openqa.selenium.net.PortProber;
38+
import org.openqa.selenium.remote.service.DriverFinder;
3839
import org.openqa.selenium.remote.service.DriverService;
3940

4041
/** Manages the life and death of SafariDriver Technology Preview. */
@@ -96,8 +97,7 @@ public Capabilities getDefaultDriverOptions() {
9697
/**
9798
* Configures and returns a new {@link SafariTechPreviewDriverService} using the default
9899
* configuration. In this configuration, the service will use the SafariDriver executable
99-
* identified by the {@link
100-
* org.openqa.selenium.remote.service.DriverFinder#getResult(DriverService, Capabilities)}. Each
100+
* identified by the {@link DriverFinder#getDriverPath()} (DriverService, Capabilities)}. Each
101101
* service created by this method will be configured to use a free port on the current system.
102102
*
103103
* @return A new SafariTechPreviewDriverService using the default configuration.

0 commit comments

Comments
 (0)