Skip to content

Commit

Permalink
Merge pull request #66 from marmelab/fix/update_README
Browse files Browse the repository at this point in the history
update_README
  • Loading branch information
thibault-barrat authored Oct 13, 2023
2 parents c6f1644 + 33eb2b2 commit c7445be
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,7 @@ You can run a custom scenario instead of the "visit" scenario by passing a scena
$ greenframe analyze https://marmelab.com ./my-scenario.js
```

GreenFrame uses [PlayWright](https://playwright.dev/) to run scenarios. A custom PlayWright scenario looks like the following:

```js
// in my-scenario.js
const scenario = async (page) => {
await page.goto('', { waitUntil: 'networkidle' }); // Go to the baseUrl
await page.waitForTimeout(3000); // Wait for 3 seconds
await page.scrollToElement('footer'); // Scroll to the footer (if present)
await page.waitForNetworkIdle(); // Wait every request has been answered as a normal user.
};

module.exports = scenario;
```
GreenFrame uses [PlayWright](https://playwright.dev/) to run scenarios. To discover what a custom PlayWright scenario looks alike, you can refer to our [documentation](https://docs.greenframe.io/scenario/).

Check [the PlayWright documentation on writing tests](https://playwright.dev/docs/writing-tests) for more information.

Expand Down

0 comments on commit c7445be

Please sign in to comment.