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
This is the example project for the [WebdriverIO JavaScript tutorial](https://applitools.com/tutorials/quickstart/web/webdriverio).
4
-
It shows how to start automating visual tests with the [Applitools Eyes](https://applitools.com/platform/eyes/)
5
-
and [WebdriverIO](https://webdriver.io/) in JavaScript.
3
+
Get started with Applitools Eyes visual testing with this example of using [WDIO](https://webdriver.io/) and our [WDIO SDK](https://applitools.com/tutorials/web/webdriverio).
6
4
7
-
It uses:
5
+
Learn more about how to install and start this project with our [WDIO tutorial](https://applitools.com/tutorials/quickstart/web/webdriverio)!
8
6
9
-
*[JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) as the programming language
10
-
*[WebdriverIO](https://webdriver.io/) for browser automation
11
-
*[Google Chrome](https://www.google.com/chrome/downloads/) as the local browser for testing
12
-
*[npm](https://www.npmjs.com/) for dependency management
13
-
*[Applitools Eyes](https://applitools.com/platform/eyes/) for visual testing
To authenticate via the Applitools server and run tests, you need to set your API key provided from Applitools Eyes. For details on how to retrieve your API key, see [the Applitools documentation](https://applitools.com/tutorials/getting-started/retrieve-api-key).
16
15
17
-
*[Applitools Ultrafast Grid](https://applitools.com/platform/ultrafast-grid/) for cross-browser execution
18
-
*[Applitools Execution Cloud](https://applitools.com/platform/execution-cloud/) for self-healing remote WebDriver sessions
16
+
2. Choose one of the following options to set your API Key.
17
+
* Set your Applitools API Key as an environment variable.
18
+
* macOS/Linux: `export APPLITOOLS_API_KEY=<Your API Key>`
19
+
* Windows: `set APPLITOOLS_API_KEY=<Your API Key>`
20
+
21
+
* Set your Applitools API Key inside the **applitools.config.js** file via the `apiKey` setting.
22
+
* Note: If you are not using the Eyes public cloud, you will need to update the `serverUrl` to your Eyes server URL in the **applitools.config.js** configuration file or set via an `APPLITOOLS_SERVER_URL` environment variable. See our [documentation](https://applitools.com/tutorials/sdks/webdriverio/advanced) for more information on these settings.
19
23
20
-
To run this example project, you'll need:
24
+
3. Run the example test
25
+
```sh
26
+
npm tset
27
+
```
21
28
22
-
1. A free [Applitools account](https://auth.applitools.com/users/register).
23
-
2. The [Node.js](https://nodejs.org/en/) version 12 or higher.
24
-
3. A good JavaScript editor, such as [Visual Studio Code](https://code.visualstudio.com/).
25
-
4.[npm](https://www.npmjs.com/) (typically bundled with Node.js).
26
-
5. An up-to-date version of [Google Chrome](https://www.google.com/chrome/downloads/).
27
-
6. A corresponding version of [ChromeDriver](https://chromedriver.chromium.org/downloads).
29
+
4. After the example tests complete. Visit your Applitools Eyes dashboard to view the results.
0 commit comments