Skip to content

Commit

Permalink
(docs): fix code example in $ commands
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Mar 14, 2024
1 parent 0130787 commit 4597152
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/webdriverio/src/commands/browser/$$.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import type { Selector } from '../../types.js'
* to walk down the DOM tree, e.g.:
*
* ```js
* const imageSrc = await $$('div')[1].nextElement().$$('img')[2].getAttribute('src)
* const imageSrc = await $$('div')[1].nextElement().$$('img')[2].getAttribute('src')
* ```
*
* It is also possible to use async iterators to loop over the result of the query, e.g.:
Expand Down
2 changes: 1 addition & 1 deletion packages/webdriverio/src/commands/browser/$.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import type { Selector } from '../../types.js'
* to walk down the DOM tree, e.g.:
*
* ```js
* const imageSrc = await $$('div')[1].nextElement().$$('img')[2].getAttribute('src)
* const imageSrc = await $$('div')[1].nextElement().$$('img')[2].getAttribute('src')
* ```
*
* :::info
Expand Down
2 changes: 1 addition & 1 deletion packages/webdriverio/src/commands/element/$.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* to walk down the DOM tree, e.g.:
*
* ```js
* const imageSrc = await $$('div')[1].nextElement().$$('img')[2].getAttribute('src)
* const imageSrc = await $$('div')[1].nextElement().$$('img')[2].getAttribute('src')
* ```
*
* :::info
Expand Down

0 comments on commit 4597152

Please sign in to comment.