Skip to content

Commit 76109e2

Browse files
committed
Minor cleanup
1 parent 02f4079 commit 76109e2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

javascript/node/selenium-webdriver/builder.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const webdriver = require('./lib/webdriver');
2727
const promise = require('./lib/promise');
2828
const opera = require('./opera');
2929
const phantomjs = require('./phantomjs');
30+
const remote = require('./remote');
3031
const safari = require('./safari');
3132

3233
const Browser = capabilities.Browser;
@@ -41,14 +42,11 @@ var seleniumServer;
4142
/**
4243
* Starts an instance of the Selenium server if not yet running.
4344
* @param {string} jar Path to the server jar to use.
44-
* @return {!promise.Promise<string>} A promise for the server's
45+
* @return {!Promise<string>} A promise for the server's
4546
* addrss once started.
4647
*/
4748
function startSeleniumServer(jar) {
4849
if (!seleniumServer) {
49-
// Requiring 'chrome' above would create a cycle:
50-
// index -> builder -> chrome -> index
51-
var remote = require('./remote');
5250
seleniumServer = new remote.SeleniumServer(jar);
5351
}
5452
return seleniumServer.start();
@@ -201,7 +199,7 @@ class Builder {
201199
this.agent_ = agent;
202200
return this;
203201
}
204-
202+
205203
/**
206204
* @return {http.Agent} The http agent used for each request
207205
*/

0 commit comments

Comments
 (0)