You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/DriverBinaries.md
+2-27Lines changed: 2 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ id: driverbinaries
3
3
title: Driver Binaries
4
4
---
5
5
6
-
WebdriverIO allows using driver binaries directly instead of services.
6
+
WebdriverIO allows using driver binaries directly instead of services.
7
7
8
8
Here’s an example with `geckodriver`.
9
9
@@ -72,7 +72,7 @@ Start Geckodriver by running:
72
72
/path/to/binary/geckodriver --port 4444
73
73
```
74
74
75
-
For example, if you ran the `curl` command from above, you should have a `geckodriver` binary available in the current folder.
75
+
For example, if you ran the `curl` command from above, you should have a `geckodriver` binary available in the current folder.
76
76
77
77
Start it like this:
78
78
@@ -84,28 +84,3 @@ Start it like this:
84
84
This will start Geckodriver on `localhost:4444` with the WebDriver endpoint set to `/`.
85
85
86
86
Keep this running in the background and open a new terminal window. Next step is to download WebdriverIO via NPM:
87
-
88
-
### Configure the `path`
89
-
90
-
If you are using driver’s binary directly (like `geckodriver` or `chromedriver`), the `path` to it is different from the expected default (which is `/wd/hub`).
91
-
92
-
To change that, we need to edit the `wdio.conf.js` file.
93
-
94
-
Add a section to specify the `path`:
95
-
96
-
```json
97
-
path: '/',
98
-
```
99
-
100
-
So the top of your file should look like:
101
-
102
-
```json
103
-
exports.config = {
104
-
runner: 'local',
105
-
//
106
-
// Uncomment line below to override default path ('/wd/hub') for usage of driver binary directly, ex: chromedriver or geckodriver.
Copy file name to clipboardExpand all lines: docs/GettingStarted.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ The `-y` will answer 'yes' to all the prompts, giving you a standard NPM project
28
28
29
29
### Install WebdriverIO CLI
30
30
31
-
If you want to use WebdriverIO in your project for integration testing, we recommend using the test runner. It comes with lots of useful features that makes your life easier.
31
+
If you want to use WebdriverIO in your project for integration testing, we recommend using the test runner. It comes with lots of useful features that makes your life easier.
32
32
33
33
Since WebdriverIO version 5, the testrunner is in the [`@wdio/cli`](https://www.npmjs.com/package/@wdio/cli) NPM package.
34
34
@@ -40,21 +40,19 @@ npm i --save-dev @wdio/cli
40
40
41
41
### Generate Configuration File
42
42
43
-
Next, you’ll generate a configuration file to store your WebdriverIO settings.
43
+
Next, you’ll generate a configuration file to store your WebdriverIO settings.
44
44
45
45
To do that, just run the configuration utility:
46
46
47
47
```sh
48
48
./node_modules/.bin/wdio config -y
49
49
```
50
50
51
-
That's it! The configurator will install all required packages for you and create a config file called `wdio.conf.js`.
52
-
53
-
As we're using Geckodriver, we need to override the default `path` (which uses the Selenium's default of `/wd/hub`). Then, we'll be ready to create your first <dfn>spec file</dfn> (or “test file”).
51
+
That's it! The configurator will install all required packages for you and create a config file called `wdio.conf.js`.
54
52
55
53
### Create Spec Files
56
54
57
-
Now it's time to create your test file. You’re going to store all of your test files in a new folder.
55
+
Now it's time to create your test file. You’re going to store all of your test files in a new folder.
58
56
59
57
Create the test folder like this:
60
58
@@ -101,7 +99,7 @@ Now save the file and return to your terminal.
101
99
102
100
### Start the Testrunner
103
101
104
-
Now, time to run your tests!
102
+
Now, time to run your tests!
105
103
106
104
To do so, just run:
107
105
@@ -113,6 +111,6 @@ Hurray! The test should pass, and you can start writing integration tests with W
113
111
114
112
If you ran into any issues, reach out in our [Gitter Channel](https://gitter.im/webdriverio/webdriverio) and post the error you're seeing, and which of the above steps you’re stuck on.
115
113
116
-
If you are interested in more in depth video on-boarding tutorials, feel free to check out our very own course called [learn.webdriver.io](https://learn.webdriver.io/?coupon=wdio).
114
+
If you are interested in more in depth video on-boarding tutorials, feel free to check out our very own course called [learn.webdriver.io](https://learn.webdriver.io/?coupon=wdio).
117
115
118
116
Our community has also collected a lot of [boilerplate projects](BoilerplateProjects.md) that may help you to get started.
0 commit comments