Skip to content

Commit

Permalink
clarify qawolf.register
Browse files Browse the repository at this point in the history
  • Loading branch information
jperl committed Mar 9, 2020
1 parent 88f5441 commit 41fe63a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/docs/api/qawolf/register.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import Syntax from '../components/Syntax';

<Syntax code="register(context)" />

Allow QA Wolf to access the specified [Playwright `BrowserContext`](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browsercontext) instance. This enables the [default selector logic](../../use_custom_selectors#default-selector-logic) to work. It also automatically creates [debug artifacts](../../run_tests_in_ci#debug) for your tests and scripts.

- Register the [Playwright `BrowserContext`](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browsercontext) so [waitForPage](TODO) works.
- Register the [html selector](https://github.com/qawolf/playwright-html-selector) so the [default selectors](../../use_custom_selectors#default-selector-logic) work.
- Create [debug artifacts](../../run_tests_in_ci#debug) when [QAW_ARTIFACT_PATH](../environment_variables#qaw_artifact_path) is specified.

### Arguments

Expand Down

0 comments on commit 41fe63a

Please sign in to comment.