@axe-core/webdriverjs 4.12.2-d2e741f.0 → 4.13.1-0bcb185.0.sha-0bcb185
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 +7 -3
- package/dist/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +13 -9
package/README.md
CHANGED
|
@@ -30,9 +30,13 @@ const { Builder } = require('selenium-webdriver');
|
|
|
30
30
|
const chrome = require('selenium-webdriver/chrome');
|
|
31
31
|
|
|
32
32
|
(async () => {
|
|
33
|
+
const options = new chrome.Options();
|
|
34
|
+
|
|
35
|
+
options.addArguments('headless');
|
|
36
|
+
|
|
33
37
|
const driver = new Builder()
|
|
34
38
|
.forBrowser('chrome')
|
|
35
|
-
.setChromeOptions(
|
|
39
|
+
.setChromeOptions(options)
|
|
36
40
|
.build();
|
|
37
41
|
await driver.get('https://dequeuniversity.com/demo/mars/');
|
|
38
42
|
|
|
@@ -181,5 +185,5 @@ We have created an example [test suite](https://github.com/dequelabs/axe-core-np
|
|
|
181
185
|
To run the test:
|
|
182
186
|
|
|
183
187
|
- Navigate to: `/webdriverjs/tests/example`
|
|
184
|
-
- Install node modules: `
|
|
185
|
-
- Run tests: `
|
|
188
|
+
- Install node modules: `pnpm install`
|
|
189
|
+
- Run tests: `pnpm test`
|
package/dist/index.js
CHANGED
|
@@ -446,7 +446,8 @@ var AxeBuilder = class {
|
|
|
446
446
|
} catch (error2) {
|
|
447
447
|
throw new Error(
|
|
448
448
|
`${error2.message}
|
|
449
|
-
Please check out ${this.errorUrl}
|
|
449
|
+
Please check out ${this.errorUrl}`,
|
|
450
|
+
{ cause: error2 }
|
|
450
451
|
);
|
|
451
452
|
}
|
|
452
453
|
}
|
|
@@ -528,7 +529,8 @@ var AxeBuilder = class {
|
|
|
528
529
|
throw new Error(
|
|
529
530
|
`switchTo failed. Are you using updated browser drivers?
|
|
530
531
|
Driver reported:
|
|
531
|
-
${error2}
|
|
532
|
+
${error2}`,
|
|
533
|
+
{ cause: error2 }
|
|
532
534
|
);
|
|
533
535
|
}
|
|
534
536
|
const res = await axeFinishRun(driver, axeSource, config, partials, option);
|
package/dist/index.mjs
CHANGED
|
@@ -411,7 +411,8 @@ var AxeBuilder = class {
|
|
|
411
411
|
} catch (error2) {
|
|
412
412
|
throw new Error(
|
|
413
413
|
`${error2.message}
|
|
414
|
-
Please check out ${this.errorUrl}
|
|
414
|
+
Please check out ${this.errorUrl}`,
|
|
415
|
+
{ cause: error2 }
|
|
415
416
|
);
|
|
416
417
|
}
|
|
417
418
|
}
|
|
@@ -493,7 +494,8 @@ var AxeBuilder = class {
|
|
|
493
494
|
throw new Error(
|
|
494
495
|
`switchTo failed. Are you using updated browser drivers?
|
|
495
496
|
Driver reported:
|
|
496
|
-
${error2}
|
|
497
|
+
${error2}`,
|
|
498
|
+
{ cause: error2 }
|
|
497
499
|
);
|
|
498
500
|
}
|
|
499
501
|
const res = await axeFinishRun(driver, axeSource, config, partials, option);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axe-core/webdriverjs",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.13.1-0bcb185.0.sha-0bcb185",
|
|
4
4
|
"description": "Provides a method to inject and analyze web pages using axe",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -45,16 +45,19 @@
|
|
|
45
45
|
"require": "./dist/index.js"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=22.12.0"
|
|
50
|
+
},
|
|
48
51
|
"scripts": {
|
|
49
52
|
"prebuild": "rimraf dist",
|
|
50
53
|
"build": "tsup src/index.ts --dts --format esm,cjs",
|
|
51
54
|
"test": "mocha --timeout 60000 -r ts-node/register 'test/**.spec.ts'",
|
|
52
|
-
"test:export": "
|
|
55
|
+
"test:export": "pnpm run test:esm && pnpm run test:commonjs && pnpm run test:ts",
|
|
53
56
|
"test:esm": "node test/esmTest.mjs",
|
|
54
57
|
"test:commonjs": "node test/commonjsTest.js",
|
|
55
|
-
"test:ts": "tsc test/tsTest.ts --noEmit --skipLibCheck --esModuleInterop",
|
|
56
|
-
"coverage": "nyc
|
|
57
|
-
"prepare": "
|
|
58
|
+
"test:ts": "tsc --ignoreConfig test/tsTest.ts --noEmit --skipLibCheck --esModuleInterop",
|
|
59
|
+
"coverage": "nyc pnpm run test",
|
|
60
|
+
"prepare": "pnpm run build"
|
|
58
61
|
},
|
|
59
62
|
"keywords": [
|
|
60
63
|
"a11y",
|
|
@@ -69,22 +72,23 @@
|
|
|
69
72
|
"webdriverjs"
|
|
70
73
|
],
|
|
71
74
|
"devDependencies": {
|
|
72
|
-
"@types/chai": "^
|
|
75
|
+
"@types/chai": "^5.2.3",
|
|
73
76
|
"@types/express": "^5.0.3",
|
|
74
77
|
"@types/mocha": "^10.0.0",
|
|
75
78
|
"@types/selenium-webdriver": "^4.35.6",
|
|
76
79
|
"async-listen": "^3.0.1",
|
|
77
80
|
"axe-test-fixtures": "github:dequelabs/axe-test-fixtures#v1",
|
|
78
81
|
"chai": "^4.3.6",
|
|
82
|
+
"dotenv": "^17.3.1",
|
|
79
83
|
"express": "^5.1.0",
|
|
80
84
|
"mocha": "^11.7.1",
|
|
81
85
|
"nyc": "^18.0.0",
|
|
82
86
|
"rimraf": "^6.0.1",
|
|
83
|
-
"selenium-webdriver": "^4.
|
|
87
|
+
"selenium-webdriver": "^4.47.0",
|
|
84
88
|
"tsup": "^8.0.1"
|
|
85
89
|
},
|
|
86
90
|
"dependencies": {
|
|
87
|
-
"axe-core": "~4.
|
|
91
|
+
"axe-core": "~4.13.0"
|
|
88
92
|
},
|
|
89
93
|
"peerDependencies": {
|
|
90
94
|
"selenium-webdriver": ">3.0.0-beta || >=2.53.1 || >4.0.0-alpha"
|
|
@@ -108,5 +112,5 @@
|
|
|
108
112
|
"functions": 85,
|
|
109
113
|
"lines": 85
|
|
110
114
|
},
|
|
111
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "0bcb1850683addb69343067263aa3fcd4ddd0561"
|
|
112
116
|
}
|