Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit fb494a4

Browse files
committed
docs(browser-setup): make the docs on creating a driver by yourself more generic
1 parent 235dd4c commit fb494a4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Diff for: docs/browser-setup.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,14 @@ capabilities: {
5050
}
5151
```
5252

53-
Jasmine tests should work without further customization. If you are using Mocha, or another framework, the driver will need to be adjusted accordingly:
53+
Appendix A: Using with the Protractor Library
54+
---------------------------------------------
55+
56+
If you are not using the Protractor runner (for example, you're using Mocha) and you are setting up webdriver yourself, you will need to create a capabilities object and pass it in to the webdriver builder. The `webdriver.Capabilities` namespace offers some preset options. See [the webdriver capabilities source](https://code.google.com/p/selenium/source/browse/javascript/webdriver/capabilities.js).
57+
5458
```javascript
5559
driver = new webdriver.Builder().
56-
usingServer('http://localhost:4444/wd/hub').withCapabilities(webdriver.Capabilities.phantomjs()).build();
60+
usingServer('http://localhost:4444/wd/hub').
61+
withCapabilities(webdriver.Capabilities.phantomjs()).
62+
build();
5763
```
58-
59-

0 commit comments

Comments
 (0)