create-wdio 10.0.0-alpha.162 → 10.0.0-alpha.165

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-wdio",
3
- "version": "10.0.0-alpha.162+728b85715",
3
+ "version": "10.0.0-alpha.165+395c8af66",
4
4
  "description": "Install and setup a WebdriverIO project with all its dependencies in a single run",
5
5
  "author": "WebdriverIO Team <mail@webdriver.io>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/create-wdio",
@@ -76,5 +76,5 @@
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  },
79
- "gitHead": "728b85715de10410aae1570f20d6ba1dc606c8d8"
79
+ "gitHead": "395c8af664ced97db1bfed1b4b679e109c956734"
80
80
  }
@@ -19,22 +19,25 @@ npx wdio session get text e9
19
19
  - **Open once.** Browsers run headless. `open` prints the page's interactive elements, so you can act right away. It also takes `firefox`, `edge`, `safari`, `android`, `ios`, `electron <app>` and more.
20
20
  - **Act on refs.** Elements show up as `button "Add to cart" [ref=e3]`. Refs stay valid while the element exists.
21
21
  - **Every action reports what changed:** new or changed lines with their refs (`+ status "Saved"`), or the new page's elements after a navigation. You rarely need a separate `snapshot`.
22
- - **Chain steps with `&&`.** One shell call for several steps is faster, and a failing step stops the chain.
23
- - **Big page?** `find <text>` prints only the matching part of the page, with refs. `snapshot` without `-i` also shows text.
22
+ - **Chain steps with `&&`.** One shell call for several steps is faster, and a failing step stops the chain. Keep the steps that show the result (the filter that got applied, the item you picked) in calls of their own.
23
+ - **Big page?** `find <text>` prints only the matching part of the page, with refs, and scrolls it into view. A long `snapshot` prints in parts: `--offset <line>` gives the next one. `read` gives an article's text.
24
+ - **Output is ready to read.** No need for `head`, `grep`, `sed`, redirects or `sleep`: use `find`, `snapshot --offset` and `wait 2000`.
25
+ - **Show your answer.** Before you answer, leave the page on what proves it (`find`/`scroll` to it): what's on screen is the evidence.
24
26
  - **No need to close.** The session shuts itself down when idle. Run `close` only to start over.
25
27
 
26
28
  ## Actions
27
29
 
28
30
  | Action | Example |
29
31
  | --- | --- |
30
- | Look | `snapshot -i` (interactive only) · `snapshot` (with text) · `find "Add to cart"` · `screenshot` |
31
- | Click | `click e3` · `click e3 --double` · `hover e3` |
32
- | Text | `fill e2 Ada Lovelace` (replaces) · `type e2 more` (appends) · `press Enter` |
32
+ | Look | `snapshot -i` (interactive only) · `snapshot` (with text) · `find "Add to cart"` · `read` (page text) · `screenshot` |
33
+ | Click | `click e3` · `click e3 --double` · `hover e3` · `scroll down` · `scroll e3` |
34
+ | Text | `fill e2 Ada Lovelace` (replaces) · `type e2 more` (appends) · `press Enter` · `press ArrowRight --times 5` |
35
+ | Values | `fill e4 65` sets sliders, dates and colors too |
33
36
  | Forms | `select e4 Pro` · `check e5` · `uncheck e5` · `upload e6 ./file.pdf` |
34
37
  | Read | `get text e9` · `get value e2` · `get url` · `get title` · `is visible e3` |
35
- | Wait | `wait e3` · `wait --text "Saved"` · `wait --url /done` · `wait --load networkidle` |
38
+ | Wait | `wait e3` · `wait --text "Saved"` · `wait --url /done` · `wait 2000` |
36
39
  | Navigate | `navigate https://…` · `back` · `reload` · `tabs` · `tabs switch 1` |
37
- | Frames | `frame e1` (into the iframe e1) · `frame top` |
40
+ | Frames | refs inside iframes work as they are · `frame e1` scopes snapshots to the iframe e1 · `frame top` |
38
41
  | Code | `exec -e 'console.log(await $("h1").getText())'` |
39
42
 
40
43
  Run `npx wdio session <action> --help` only when an action fails or you need a flag that isn't shown here.