@axe-core/webdriverjs 4.2.3-alpha.191 → 4.3.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/CHANGELOG.md CHANGED
@@ -3,6 +3,23 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [4.3.0](https://github.com/dequelabs/axe-core-npm/compare/v4.2.0...v4.3.0) (2021-09-20)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **types:** return `this` rather than the class ([#360](https://github.com/dequelabs/axe-core-npm/issues/360)) ([7999891](https://github.com/dequelabs/axe-core-npm/commit/7999891e9cf48a27ee053e702667b55344714896))
11
+ - **webdriverjs:** resolve promise ([#347](https://github.com/dequelabs/axe-core-npm/issues/347)) ([d1548a5](https://github.com/dequelabs/axe-core-npm/commit/d1548a5ad8c31262a655b7ba1e4fe5b7da888417))
12
+ - selenium-webdriverjs peer dependency to allow newer versions ([#258](https://github.com/dequelabs/axe-core-npm/issues/258)) ([2dc2788](https://github.com/dequelabs/axe-core-npm/commit/2dc27883aa4aa40e64766b0bc60191cb1a4f8963))
13
+ - update axe-core to 4.2.1 ([#254](https://github.com/dequelabs/axe-core-npm/issues/254)) ([9d90185](https://github.com/dequelabs/axe-core-npm/commit/9d9018525a4d799f6d763d0329f05ccbfd20dbe4))
14
+
15
+ ### Features
16
+
17
+ - Add .setLegacyMode ([#356](https://github.com/dequelabs/axe-core-npm/issues/356)) ([f9d021b](https://github.com/dequelabs/axe-core-npm/commit/f9d021b49487e2a0f804f61e9b6e09a26b69a6e4))
18
+ - **puppeteer:** Upgrade to axe-core 4.3 ([#327](https://github.com/dequelabs/axe-core-npm/issues/327)) ([3c9aff1](https://github.com/dequelabs/axe-core-npm/commit/3c9aff1c64f22b17771aa6dd04ed5922f203c094))
19
+ - **webdriverjs:** upgrade to axe-core 4.3 ([#312](https://github.com/dequelabs/axe-core-npm/issues/312)) ([b416e74](https://github.com/dequelabs/axe-core-npm/commit/b416e74fb56526021b010996c0e1382269627efa))
20
+ - update `axe-core@4.2.2` ([#263](https://github.com/dequelabs/axe-core-npm/issues/263)) ([8c609e1](https://github.com/dequelabs/axe-core-npm/commit/8c609e1e3580a63f8697ca94e146b0e2ed28e579))
21
+ - update to use `axe-core@4.2.3` ([#280](https://github.com/dequelabs/axe-core-npm/issues/280)) ([8aebba5](https://github.com/dequelabs/axe-core-npm/commit/8aebba5c6069ca047f649446e072259c069c9a22))
22
+
6
23
  ## [4.2.2](https://github.com/dequelabs/axe-core-npm/compare/v4.2.0...v4.2.2) (2021-06-23)
7
24
 
8
25
  ### Bug Fixes
package/error-handling.md CHANGED
@@ -1 +1,52 @@
1
1
  # Error Handling
2
+
3
+ ## Table of Content
4
+
5
+ 1. [Having an Out-of-date Driver](#having-an-out-of-date-driver)
6
+ 2. [Having Popup blockers enabled](#having-popup-blockers-enabled)
7
+ 3. [AxeBuilder.setLegacyMode(legacy: boolean)](#axebuildersetlegacymodelegacy-boolean)
8
+
9
+ Version 4.3.0 and above of the axe-core integrations use a new technique when calling `AxeBuilder.analyze()` which opens a new window at the end of a run. Many of the issues outlined in this document address common problems with this technique and their potential solutions.
10
+
11
+ ### Having an Out-of-date Driver
12
+
13
+ A common problem is having an out-of-date driver. To fix this issue make sure that your local install of [geckodriver](https://github.com/mozilla/geckodriver/releases) or [chromedriver](https://chromedriver.chromium.org/downloads) is up-to-date.
14
+
15
+ An example error message for this problem will include a message about `switchToWindow`.
16
+
17
+ Example:
18
+
19
+ ```console
20
+ (node:17566) UnhandledPromiseRejectionWarning: Error: Malformed type for "handle" parameter of command switchToWindow
21
+ Expected: string
22
+ Actual: undefined
23
+ ```
24
+
25
+ ### Having Popup blockers enabled
26
+
27
+ Popup blockers prevent us from opening the new window when calling `AxeBuilder.analyze()`. The default configuration for most automation testing libraries should allow popups. Please make sure that you do not explicitly enable popup blockers which may cause an issue while running the tests.
28
+
29
+ ### AxeBuilder.setLegacyMode(legacy: boolean)
30
+
31
+ If for some reason you are unable to run the new `AxeBuilder.analyze` technique without errors, axe provides a new chainable method that allows you to run the legacy version of `AxeBuilder.analyze`. When using this method axe excludes accessibility issues that may occur in cross-domain frames and iframes.
32
+
33
+ **Please Note:** `AxeBuilder.setLegacyMode` is deprecated and will be removed in v5.0. Please report any errors you may have while running `AxeBuilder.analyze` so that they can be fixed before the legacy version is removed.
34
+
35
+ #### Example:
36
+
37
+ ```js
38
+ const AxeBuilder = require('@axe-core/webdriverjs');
39
+ const WebDriver = require('selenium-webdriver');
40
+ (async () => {
41
+ const driver = new WebDriver.Builder().forBrowser('chrome').build();
42
+ await driver.get('https://dequeuniversity.com/demo/mars/');
43
+ const results = await new AxeBuilder(driver, null, {
44
+ noSandbox: true
45
+ })
46
+ // enables legacy mode
47
+ .setLegacyMode()
48
+ .analyze();
49
+ console.log(results);
50
+ await driver.quit();
51
+ })();
52
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axe-core/webdriverjs",
3
- "version": "4.2.3-alpha.191+734e7bd",
3
+ "version": "4.3.0",
4
4
  "description": "Provides a method to inject and analyze web pages using axe",
5
5
  "contributors": [
6
6
  {
@@ -105,5 +105,5 @@
105
105
  "functions": 85,
106
106
  "lines": 85
107
107
  },
108
- "gitHead": "734e7bd73e48902be0af26adc5a09f079190ce7f"
108
+ "gitHead": "e0033b2772806568add33f885f7b28fcca4be135"
109
109
  }