-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
65 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react'; | ||
import Argument from '../Argument'; | ||
|
||
function ArgumentRegister() { | ||
return ( | ||
<React.Fragment> | ||
<Argument | ||
description={ | ||
<React.Fragment> | ||
The{' '} | ||
<a href="https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browsercontext"> | ||
Playwright <code>BrowserContext</code> | ||
</a>{' '} | ||
instance. | ||
</React.Fragment> | ||
} | ||
name="context" | ||
type="BrowserContext" | ||
/> | ||
</React.Fragment> | ||
); | ||
} | ||
|
||
export default ArgumentRegister; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
id: register | ||
sidebar_label: register | ||
title: qawolf.register | ||
--- | ||
|
||
import ArgumentRegister from '../components/qawolf/ArgumentRegister'; | ||
import ReturnVoid from '../components/qawolf/ReturnVoid'; | ||
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. | ||
|
||
### Arguments | ||
|
||
<ArgumentRegister /> | ||
|
||
### Returns | ||
|
||
<ReturnVoid /> | ||
|
||
### Examples | ||
|
||
Give QA Wolf access to the [Playwright `BrowserContext`](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browsercontext) instance that your test or script is running against. | ||
|
||
```js | ||
const qawolf = require('qawolf'); | ||
// ... | ||
qawolf.register(context); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters