webdriverio 8.29.0 → 8.29.3

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/README.md CHANGED
@@ -20,30 +20,32 @@ WebdriverIO by default uses Puppeteer to automate a browser like Chrome, Firefox
20
20
  ```js
21
21
  import { remote } from 'webdriverio'
22
22
 
23
- let browser
24
-
25
- ;(async () => {
26
- browser = await remote({
27
- capabilities: { browserName: 'chrome' }
28
- })
23
+ const browser = await remote({
24
+ capabilities: { browserName: 'chrome' }
25
+ })
29
26
 
30
- await browser.navigateTo('https://www.google.com/ncr')
27
+ await browser.navigateTo('https://www.google.com/ncr')
31
28
 
32
- const searchInput = await browser.$('#lst-ib')
33
- await searchInput.setValue('WebdriverIO')
29
+ const searchInput = await browser.$('#lst-ib')
30
+ await searchInput.setValue('WebdriverIO')
34
31
 
35
- const searchBtn = await browser.$('input[value="Google Search"]')
36
- await searchBtn.click()
32
+ const searchBtn = await browser.$('input[value="Google Search"]')
33
+ await searchBtn.click()
37
34
 
38
- console.log(await browser.getTitle()) // outputs "WebdriverIO - Google Search"
35
+ console.log(await browser.getTitle()) // outputs "WebdriverIO - Google Search"
39
36
 
40
- await browser.deleteSession()
41
- })().catch((err) => {
42
- console.error(err)
43
- return browser.deleteSession()
44
- })
37
+ await browser.deleteSession()
45
38
  ```
46
39
 
47
40
  See the raw [protocol example](https://www.npmjs.com/package/webdriver#example) using the `webdriver` package to get a glance at the differences.
48
41
 
49
42
  For more information on [options](https://webdriver.io/docs/options#webdriver-options), [multiremote usage](https://webdriver.io/docs/multiremote) or integration into [cloud services](https://webdriver.io/docs/cloudservices) please check out the [docs](https://webdriver.io/docs/gettingstarted).
43
+
44
+ ---
45
+
46
+ <center>Package Sponsors:</center>
47
+ <p align="center">
48
+ <a href="https://www.browserstack.com/automation-webdriverio">
49
+ <img src="https://www.browserstack.com/images/layout/browserstack-logo-600x315.png" alt="BrowserStack" width="300" />
50
+ </a>
51
+ </p>
@@ -20,7 +20,7 @@ import type { Selector } from '../../types.js';
20
20
  * ```js
21
21
  * // print all image sources
22
22
  * for await (const img of $$('img')) {
23
- * console.log(await img.getAttribute('src))
23
+ * console.log(await img.getAttribute('src'))
24
24
  * }
25
25
  * ```
26
26
  *
@@ -20,7 +20,7 @@ import { getElements } from '../../utils/getElementObject.js';
20
20
  * ```js
21
21
  * // print all image sources
22
22
  * for await (const img of $$('img')) {
23
- * console.log(await img.getAttribute('src))
23
+ * console.log(await img.getAttribute('src'))
24
24
  * }
25
25
  * ```
26
26
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "webdriverio",
3
3
  "description": "Next-gen browser and mobile automation test framework for Node.js",
4
- "version": "8.29.0",
4
+ "version": "8.29.3",
5
5
  "homepage": "https://webdriver.io",
6
6
  "author": "Christian Bromann <mail@bromann.dev>",
7
7
  "license": "MIT",
@@ -69,12 +69,12 @@
69
69
  },
70
70
  "dependencies": {
71
71
  "@types/node": "^20.1.0",
72
- "@wdio/config": "8.29.0",
72
+ "@wdio/config": "8.29.3",
73
73
  "@wdio/logger": "8.28.0",
74
74
  "@wdio/protocols": "8.24.12",
75
75
  "@wdio/repl": "8.24.12",
76
- "@wdio/types": "8.29.0",
77
- "@wdio/utils": "8.29.0",
76
+ "@wdio/types": "8.29.1",
77
+ "@wdio/utils": "8.29.3",
78
78
  "archiver": "^6.0.0",
79
79
  "aria-query": "^5.0.0",
80
80
  "css-shorthand-properties": "^1.1.1",
@@ -91,7 +91,7 @@
91
91
  "resq": "^1.9.1",
92
92
  "rgb2hex": "0.2.5",
93
93
  "serialize-error": "^11.0.1",
94
- "webdriver": "8.29.0"
94
+ "webdriver": "8.29.3"
95
95
  },
96
96
  "peerDependencies": {
97
97
  "devtools": "^8.14.0"
@@ -101,5 +101,5 @@
101
101
  "optional": true
102
102
  }
103
103
  },
104
- "gitHead": "cfd2ee1a1b4c4dc5b399ada6c28e8ccfa90c3bf1"
104
+ "gitHead": "4c6433be548950dc6ccf0efff77507dfa2f0b321"
105
105
  }