Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/applitools/example-puppeteer-javascript
Applitools Example: Puppeteer in JavaScript
https://github.com/applitools/example-puppeteer-javascript
applitools applitools-example applitools-eyes applitools-tutorial javascript puppeteer test-automation tutorial ultrafast-grid visual-testing
Last synced: about 1 month ago
JSON representation
Applitools Example: Puppeteer in JavaScript
- Host: GitHub
- URL: https://github.com/applitools/example-puppeteer-javascript
- Owner: applitools
- License: apache-2.0
- Created: 2020-11-19T15:04:04.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-29T19:02:19.000Z (over 1 year ago)
- Last Synced: 2024-04-14T04:52:37.888Z (8 months ago)
- Topics: applitools, applitools-example, applitools-eyes, applitools-tutorial, javascript, puppeteer, test-automation, tutorial, ultrafast-grid, visual-testing
- Language: JavaScript
- Homepage: https://applitools.com/tutorials/quickstart/web/puppeteer
- Size: 166 KB
- Stars: 0
- Watchers: 8
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Applitools Example: Puppeteer in JavaScript
This is the example project for the [Puppeteer JavaScript tutorial](https://applitools.com/tutorials/quickstart/web/puppeteer).
It shows how to start automating visual tests
with [Applitools Eyes](https://applitools.com/platform/eyes/)
and [Puppeteer](https://pptr.dev/) in JavaScript.It uses:
* [JavaScript](https://www.javascript.com/) as the programming language
* [Puppeteer](https://pptr.dev/) for browser automation
* [Mocha](https://mochajs.org/) as the core test framework
* [Chromium](https://www.chromium.org/chromium-projects/) as the local browser for testing
* [npm](https://www.npmjs.com/) for dependency management
* [Applitools Eyes](https://applitools.com/platform/eyes/) for visual testingIt can also run tests with:
* [Applitools Ultrafast Grid](https://applitools.com/platform/ultrafast-grid/) for cross-browser execution
To run this example project, you'll need:
1. An [Applitools account](https://auth.applitools.com/users/register), which you can register for free
2. A recent version of [Node.js](https://nodejs.org/en/download/)
3. A good JavaScript editor like [Visual Studio Code](https://code.visualstudio.com/docs/languages/typescript)To install dependencies, run:
```
npm install
```When this command installs Puppeteer, it will also automatically install Chromium.
The main test case spec is [`acme-bank.test.js`](test/acme-bank.test.js).
By default, the project will run tests with Ultrafast Grid.
You can change these settings in the test file.To execute tests, set the `APPLITOOLS_API_KEY` environment variable
to your [account's API key](https://applitools.com/tutorials/guides/getting-started/registering-an-account),
and then run:```
npm test
```**For full instructions on running this project, take our
[Puppeteer JavaScript tutorial](https://applitools.com/tutorials/quickstart/web/puppeteer)!**