Skip to content

Commit

Permalink
update readme with new selectors and fill
Browse files Browse the repository at this point in the history
  • Loading branch information
jperl committed Jul 9, 2020
1 parent 1859a57 commit 8a83b0e
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,21 @@ npx qawolf create url [name]

πŸ’ͺ Convert your actions into [Playwright](https://github.com/microsoft/playwright) code:

| Action | Status | Example |
| ------------------------------------------------------------ | :----: | ---------------------------------------------------------- |
| Click | βœ… | `page.click(selectors['0_submit'])` |
| Type | βœ… | `page.type(selectors['0_username'], 'username')` |
| Scroll | βœ… | `qawolf.scroll(page, 'html', { x: 0, y: 200 })` |
| Select | βœ… | `page.selectOption(selectors['0_ice_cream'], 'chocolate')` |
| Replace text | βœ… | `page.fill(selectors['0_username'], 'username')` |
| Paste | βœ… | `page.type(selectors['password'], 'pasted')` |
| Use a test attribute | βœ… | `page.click("[data-qa='submit']")` |
| Use a test attribute on an ancestor | βœ… | `page.click("[data-qa='radio'] [value='cat']")` |
| Use multiple pages/tabs | βœ… | `qawolf.waitForPage(page.context(), 1)` |
| [Iframes](https://github.com/qawolf/qawolf/issues/279) | πŸ—ΊοΈ | Coming soon |
| [Drag and drop](https://github.com/qawolf/qawolf/issues/315) | πŸ—ΊοΈ | Coming soon |
| [File upload](https://github.com/qawolf/qawolf/issues/331) | πŸ—ΊοΈ | Coming soon |
| [Back button](https://github.com/qawolf/qawolf/issues/438) | πŸ—ΊοΈ | Coming soon |
| Action | Status | Example |
| ------------------------------------------------------------ | :----: | ----------------------------------------------- |
| Click | βœ… | `page.click('#login')` |
| Type | βœ… | `page.fill('.username', 'spirit@qawolf.com')` |
| Scroll | βœ… | `qawolf.scroll(page, 'html', { x: 0, y: 200 })` |
| Select | βœ… | `page.selectOption('.ice_cream', 'chocolate')` |
| Replace text | βœ… | `page.fill('.username', 'username')` |
| Paste | βœ… | `page.type('password', 'pasted')` |
| Use a test attribute | βœ… | `page.click("[data-qa='submit']")` |
| Use a test attribute on an ancestor | βœ… | `page.click("[data-qa='radio'] [value='cat']")` |
| Use multiple pages/tabs | βœ… | `qawolf.waitForPage(page.context(), 1)` |
| [Iframes](https://github.com/qawolf/qawolf/issues/279) | πŸ—ΊοΈ | Coming soon |
| [Drag and drop](https://github.com/qawolf/qawolf/issues/315) | πŸ—ΊοΈ | Coming soon |
| [File upload](https://github.com/qawolf/qawolf/issues/331) | πŸ—ΊοΈ | Coming soon |
| [Back button](https://github.com/qawolf/qawolf/issues/438) | πŸ—ΊοΈ | Coming soon |

As your test is created:

Expand Down

0 comments on commit 8a83b0e

Please sign in to comment.