@@ -32,24 +32,20 @@ var _base = require('../_base'),
32
32
33
33
/**
34
34
* Configuration options for a DriverService instance.
35
- * <ul>
36
- * <li>
37
- * <li>{@code loopback} - Whether the service should only be accessed on this
38
- * host's loopback address.
39
- * <li>{@code port} - The port to start the server on (must be > 0). If the
40
- * port is provided as a promise, the service will wait for the promise to
41
- * resolve before starting.
42
- * <li>{@code args} - The arguments to pass to the service. If a promise is
43
- * provided, the service will wait for it to resolve before starting.
44
- * <li>{@code path} - The base path on the server for the WebDriver wire
45
- * protocol (e.g. '/wd/hub'). Defaults to '/'.
46
- * <li>{@code env} - The environment variables that should be visible to the
47
- * server process. Defaults to inheriting the current process's
48
- * environment.
49
- * <li>{@code stdio} - IO configuration for the spawned server process. For
50
- * more information, refer to the documentation of
51
- * {@code child_process.spawn}.
52
- * </ul>
35
+ *
36
+ * - `loopback` - Whether the service should only be accessed on this host's
37
+ * loopback address.
38
+ * - `port` - The port to start the server on (must be > 0). If the port is
39
+ * provided as a promise, the service will wait for the promise to resolve
40
+ * before starting.
41
+ * - `args` - The arguments to pass to the service. If a promise is provided,
42
+ * the service will wait for it to resolve before starting.
43
+ * - `path` - The base path on the server for the WebDriver wire protocol
44
+ * (e.g. '/wd/hub'). Defaults to '/'.
45
+ * - `env` - The environment variables that should be visible to the server
46
+ * process. Defaults to inheriting the current process's environment.
47
+ * - `stdio` - IO configuration for the spawned server process. For more
48
+ * information, refer to the documentation of `child_process.spawn`.
53
49
*
54
50
* @typedef {{
55
51
* port: (number|!webdriver.promise.Promise.<number>),
@@ -65,10 +61,10 @@ var ServiceOptions;
65
61
/**
66
62
* Manages the life and death of a native executable WebDriver server.
67
63
*
68
- * <p> It is expected that the driver server implements the
69
- * <a href=" http://code.google.com/p/selenium/wiki/JsonWireProtocol">WebDriver
70
- * Wire Protocol</a>. Furthermore, the managed server should support multiple
71
- * concurrent sessions, so that this class may be reused for multiple clients.
64
+ * It is expected that the driver server implements the
65
+ * [WebDriver wire protocol]( http://code.google.com/p/selenium/wiki/JsonWireProtocol).
66
+ * Furthermore, the managed server should support multiple concurrent sessions,
67
+ * so that this class may be reused for multiple clients.
72
68
*
73
69
* @param {string } executable Path to the executable to run.
74
70
* @param {!ServiceOptions } options Configuration options for the service.
@@ -280,21 +276,18 @@ util.inherits(SeleniumServer, DriverService);
280
276
281
277
/**
282
278
* Options for the Selenium server:
283
- * <ul>
284
- * <li>{@code port} - The port to start the server on (must be > 0). If the
285
- * port is provided as a promise, the service will wait for the promise to
286
- * resolve before starting.
287
- * <li>{@code args} - The arguments to pass to the service. If a promise is
288
- * provided, the service will wait for it to resolve before starting.
289
- * <li>{@code jvmArgs} - The arguments to pass to the JVM. If a promise is
290
- * provided, the service will wait for it to resolve before starting.
291
- * <li>{@code env} - The environment variables that should be visible to the
292
- * server process. Defaults to inheriting the current process's
293
- * environment.
294
- * <li>{@code stdio} - IO configuration for the spawned server process. For
295
- * more information, refer to the documentation of
296
- * {@code child_process.spawn}.
297
- * </ul>
279
+ *
280
+ * - `port` - The port to start the server on (must be > 0). If the port is
281
+ * provided as a promise, the service will wait for the promise to resolve
282
+ * before starting.
283
+ * - `args` - The arguments to pass to the service. If a promise is provided,
284
+ * the service will wait for it to resolve before starting.
285
+ * - `jvmArgs` - The arguments to pass to the JVM. If a promise is provided,
286
+ * the service will wait for it to resolve before starting.
287
+ * - `env` - The environment variables that should be visible to the server
288
+ * process. Defaults to inheriting the current process's environment.
289
+ * - `stdio` - IO configuration for the spawned server process. For more
290
+ * information, refer to the documentation of `child_process.spawn`.
298
291
*
299
292
* @typedef {{
300
293
* port: (number|!webdriver.promise.Promise.<number>),
@@ -311,12 +304,25 @@ SeleniumServer.Options;
311
304
312
305
313
306
/**
307
+ * A {@link webdriver.FileDetector} that may be used when running
308
+ * against a remote
309
+ * [Selenium server](http://selenium-release.storage.googleapis.com/index.html).
310
+ *
311
+ * When a file path on the local machine running this script is entered with
312
+ * {@link webdriver.WebElement#sendKeys WebElement#sendKeys}, this file detector
313
+ * will transfer the specified file to the Selenium server's host; the sendKeys
314
+ * command will be updated to use the transfered file's path.
315
+ *
316
+ * __Note:__ This class depends on a non-standard command supported on the
317
+ * Java Selenium server. The file detector will fail if used with a server that
318
+ * only supports standard WebDriver commands (such as the ChromeDriver).
319
+ *
314
320
* @constructor
315
321
* @extends {webdriver.FileDetector }
316
322
* @final
317
323
*/
318
324
var FileDetector = function ( ) { } ;
319
- util . inherits ( _base . require ( ' webdriver.FileDetector' ) , FileDetector ) ;
325
+ util . inherits ( webdriver . FileDetector , FileDetector ) ;
320
326
321
327
322
328
/** @override */
0 commit comments