Skip to content

Commit 4d604a6

Browse files
committed
[js] Doc formatting
1 parent 222fe19 commit 4d604a6

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

javascript/node/selenium-webdriver/phantomjs.js

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,21 @@
1616
// under the License.
1717

1818
/**
19-
* @fileoverview Defines a {@linkplain Driver WebDriver} client for the PhantomJS
20-
* web browser. By default, it is expected that the PhantomJS executable can be located on your [PATH](https://en.wikipedia.org/wiki/PATH_(variable))
21-
*
19+
* @fileoverview Defines a {@linkplain Driver WebDriver} client for the
20+
* PhantomJS web browser. By default, it is expected that the PhantomJS
21+
* executable can be located on your
22+
* [PATH](https://en.wikipedia.org/wiki/PATH_(variable))
23+
*
2224
* __Using a Custom PhantomJS Binary__
23-
*
24-
* If you have PhantomJS.exe placed somewhere other than the root of your working directory,
25-
* you can build a custom Capability and attach the executable's location to the Capability
26-
*
27-
* For example, if you're using the [phantomjs-prebuilt](https://www.npmjs.com/package/phantomjs-prebuilt) module from npm:
28-
*
25+
*
26+
* If you have PhantomJS.exe placed somewhere other than the root of your
27+
* working directory, you can build a custom Capability and attach the
28+
* executable's location to the Capability
29+
*
30+
* For example, if you're using the
31+
* [phantomjs-prebuilt](https://www.npmjs.com/package/phantomjs-prebuilt) module
32+
* from npm:
33+
*
2934
* //setup custom phantomJS capability
3035
* var phantomjs_exe = require('phantomjs-prebuilt').path;
3136
* var customPhantom = selenium.Capabilities.phantomjs();
@@ -36,7 +41,7 @@
3641
* build();
3742
*
3843
*/
39-
44+
4045
'use strict';
4146

4247
const fs = require('fs');
@@ -186,7 +191,8 @@ class Driver extends webdriver.WebDriver {
186191
if (proxy.httpProxy) {
187192
args.push(
188193
'--proxy-type=http',
189-
'--proxy=http://' + proxy.httpProxy);
194+
'--proxy=' + proxy.httpProxy);
195+
console.log(args);
190196
}
191197
break;
192198
case 'pac':
@@ -204,6 +210,7 @@ class Driver extends webdriver.WebDriver {
204210
var port = portprober.findFreePort();
205211
var service = new remote.DriverService(exe, {
206212
port: port,
213+
stdio: 'inherit',
207214
args: promise.when(port, function(port) {
208215
args.push('--webdriver=' + port);
209216
return args;

0 commit comments

Comments
 (0)