Add ServiceBuilder#setAdbPort

This commit is contained in:
Kuniwak
2015-07-08 18:15:18 +09:00
parent 11daee6f62
commit 666442816f
2 changed files with 12 additions and 0 deletions
@@ -40,6 +40,7 @@ function TestServiceBuilder() {
var anything: any = builder.build();
builder = builder.usingPort(8080);
builder = builder.setAdbPort(5037);
builder = builder.loggingTo("path");
builder = builder.enableVerboseLogging();
builder = builder.setNumHttpThreads(5);
+11
View File
@@ -296,6 +296,17 @@ declare module chrome {
usingPort(port: number): ServiceBuilder;
/**
* Sets which port adb is listening to. _The ChromeDriver will connect to adb
* if an {@linkplain Options#androidPackage Android session} is requested, but
* adb **must** be started beforehand._
*
* @param {number} port Which port adb is running on.
* @return {!ServiceBuilder} A self reference.
*/
setAdbPort(port: number): ServiceBuilder;
/**
* Sets the path of the log file the driver should log to. If a log file is
* not specified, the driver will log to stderr.