selenium-webdriver 4.48.0 → 4.49.0
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/CHANGES.md +10 -0
- package/bidi/generated/browsing_context.d.ts +5 -0
- package/bidi/generated/emulation.d.ts +30 -4
- package/bin/linux-arm64/selenium-manager +0 -0
- package/bin/{linux → linux-x86_64}/selenium-manager +0 -0
- package/bin/macos/selenium-manager +0 -0
- package/bin/selenium-manager-THIRD-PARTY-NOTICES.txt +271 -26
- package/bin/selenium-manager.cdx.json +211 -211
- package/bin/windows/selenium-manager.exe +0 -0
- package/chromium.js +1 -1
- package/common/seleniumManager.js +2 -2
- package/example/chrome_mobile_emulation.js +1 -1
- package/package.json +4 -4
|
Binary file
|
package/chromium.js
CHANGED
|
@@ -506,7 +506,7 @@ class Options extends Capabilities {
|
|
|
506
506
|
* __Example 1: Using a Pre-configured Device__
|
|
507
507
|
*
|
|
508
508
|
* let options = new chrome.Options().setMobileEmulation(
|
|
509
|
-
* {deviceName: '
|
|
509
|
+
* {deviceName: 'Pixel 10'});
|
|
510
510
|
*
|
|
511
511
|
* let driver = chrome.Driver.createSession(options);
|
|
512
512
|
*
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* Wrapper for getting information from the Selenium Manager binaries
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
const { platform } = require('node:process')
|
|
24
|
+
const { platform, arch } = require('node:process')
|
|
25
25
|
const path = require('node:path')
|
|
26
26
|
const fs = require('node:fs')
|
|
27
27
|
const spawnSync = require('node:child_process').spawnSync
|
|
@@ -39,7 +39,7 @@ function getBinary() {
|
|
|
39
39
|
darwin: 'macos',
|
|
40
40
|
win32: 'windows',
|
|
41
41
|
cygwin: 'windows',
|
|
42
|
-
linux: 'linux',
|
|
42
|
+
linux: arch === 'arm64' ? 'linux-arm64' : 'linux-x86_64',
|
|
43
43
|
}[platform]
|
|
44
44
|
|
|
45
45
|
const file = directory === 'windows' ? 'selenium-manager.exe' : 'selenium-manager'
|
|
@@ -30,7 +30,7 @@ const { Options } = require('../chrome')
|
|
|
30
30
|
try {
|
|
31
31
|
driver = await new Builder()
|
|
32
32
|
.forBrowser('chrome')
|
|
33
|
-
.setChromeOptions(new Options().setMobileEmulation({ deviceName: '
|
|
33
|
+
.setChromeOptions(new Options().setMobileEmulation({ deviceName: 'Pixel 10' }))
|
|
34
34
|
.build()
|
|
35
35
|
await driver.get('http://www.google.com/ncr')
|
|
36
36
|
await driver.findElement(By.name('q')).sendKeys('webdriver', Key.RETURN)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "selenium-webdriver",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.49.0",
|
|
4
4
|
"description": "The official WebDriver JavaScript bindings from the Selenium project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
"cddl": "^0.21.1",
|
|
34
34
|
"cddl2ts": "^0.10.1",
|
|
35
35
|
"clean-jsdoc-theme": "^4.3.3",
|
|
36
|
-
"eslint": "^10.
|
|
36
|
+
"eslint": "^10.10.0",
|
|
37
37
|
"eslint-config-prettier": "^10.1.8",
|
|
38
38
|
"eslint-plugin-mocha": "^11.3.0",
|
|
39
39
|
"eslint-plugin-n": "^18.3.0",
|
|
40
40
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
41
41
|
"eslint-plugin-prettier": "^5.5.6",
|
|
42
42
|
"express": "^5.2.1",
|
|
43
|
-
"globals": "^17.
|
|
43
|
+
"globals": "^17.12.0",
|
|
44
44
|
"has-flag": "^5.0.1",
|
|
45
45
|
"jsdoc": "^4.0.5",
|
|
46
46
|
"mocha": "^11.8.0",
|
|
47
47
|
"mocha-junit-reporter": "^2.2.1",
|
|
48
|
-
"multer": "^2.
|
|
48
|
+
"multer": "^2.3.0",
|
|
49
49
|
"prettier": "^3.9.6",
|
|
50
50
|
"serve-index": "^1.9.2",
|
|
51
51
|
"sinon": "^22.1.0",
|