Skip to content

added define po steps #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docs/Steps/playwright.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,24 @@ example:
When I scroll by '0, 100' in 'Overflow Container'
```

_________________________
### I define {string} as {string} {playwrightPoType}

Register selector as page object

| param | type | description |
|:-----------:|:------:|:-----------------------------------------:|
| selectorKey | string | selector to register |
| aliasKey | string | alias of element |
| poType | string | type of page object (element, collection) |
example:
```gherkin
When I define '#someId' as 'My Button' element
And I click 'My Button'
When I define 'li.selected' as 'Selected Items' collection
And I expect number of element in 'Selected Items' collection to equal '3'
```

## Validation Steps

---
Expand Down
22 changes: 20 additions & 2 deletions docs/Steps/wdio.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,15 +379,15 @@ example:
```gherkin
When I scroll by '0, 100' in 'Overflow Container'
```

_________________________
### I accept alert

Accepts an alert

```gherkin
When I accept alert
```

_________________________
### I dismiss alert

Dismisses an alert
Expand All @@ -410,6 +410,24 @@ When I type 'not a good practice' to alert
When I type 'nowadays' to alert
```

_________________________
### I define {string} as {string} {wdioPoType}

Register selector as page object

| param | type | description |
|:-----------:|:------:|:-----------------------------------------:|
| selectorKey | string | selector to register |
| aliasKey | string | alias of element |
| poType | string | type of page object (element, collection) |
example:
```gherkin
When I define '#someId' as 'My Button' element
And I click 'My Button'
When I define 'li.selected' as 'Selected Items' collection
And I expect number of element in 'Selected Items' collection to equal '3'
```

## Validation Steps

---
Expand Down