You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ability to remove sandbox from iframes ([#86](http://dequelabs/axe-core-maven-html/issues/86)) ([9357957](http://dequelabs/axe-core-maven-html/commits/9357957a3f1e9bbf338b921e8db35c8041cf43e7))
7
+
* add ability to use list of WebElements ([#58](http://dequelabs/axe-core-maven-html/issues/58)) ([7e518f4](http://dequelabs/axe-core-maven-html/commits/7e518f47f28a7af53fb48543eba18a5b8bbaa2c8))
* add a more complete API ([#75](https://github.com/dequelabs/axe-core-maven-html/pull/75)) ([2285cb9](https://github.com/dequelabs/axe-core-maven-html/commit/2285cb980f6357a2b69dbec0dfabc62740d45f4d))
10
+
11
+
### Breaking Changes
12
+
13
+
* Changed package group ID to "com.deque.html.axe-core"
14
+
* Renamed the Java package name to "com.deque.html.axecore.selenium"
* pass axe correct context when using include+exclude ([#43](http://dequelabs/axe-selenium-java/issues/43)) ([73a5009](http://dequelabs/axe-selenium-java/commits/73a5009b22afad5243d60db5f0d751de7165519a))
7
-
* set minimum compiler source/target to java 7 ([8d19fed](http://dequelabs/axe-selenium-java/commits/8d19fedb271975b2457a8e27856a44f601b5a110))
22
+
* pass axe correct context when using include+exclude ([#43](http://dequelabs/axe-core-maven-html/issues/43)) ([73a5009](http://dequelabs/axe-core-maven-html/commits/73a5009b22afad5243d60db5f0d751de7165519a))
23
+
* set minimum compiler source/target to java 7 ([8d19fed](http://dequelabs/axe-core-maven-html/commits/8d19fedb271975b2457a8e27856a44f601b5a110))
-**aXe 3.0+:** remove references to axe.a11yCheck, bump versions of Selenium webdriver, update axe to 2.6.1 in test/resources ([43145e7](https://github.com/dequelabs/axe-selenium-java/commit/43145e7))
- update axe-core to v3.1.2 ([#23](https://github.com/dequelabs/axe-selenium-java/issues/23)) ([914a506](https://github.com/dequelabs/axe-selenium-java/commit/914a506))
32
+
***aXe 3.0+:** remove references to axe.a11yCheck, bump versions of Selenium webdriver, update axe to 2.6.1 in test/resources ([43145e7](http://dequelabs/axe-core-maven-html/commits/43145e7e431272807017ea5bd0e29e032a55b456))
* update axe-core to v3.1.2 ([#23](http://dequelabs/axe-core-maven-html/issues/23)) ([914a506](http://dequelabs/axe-core-maven-html/commits/914a50693058c152891202d4fb9a764c8cbcf09b))
35
+
36
+
37
+
38
+
# 2.1.0 (2017-10-12)
17
39
18
-
### BREAKING CHANGES
19
40
20
-
- throw errors returned by axe-core's `run` method ([3617578](https://github.com/dequelabs/axe-selenium-java/commit/36175781a396fcbd87c146d763b67e70e208820f)) ([#27](https://github.com/dequelabs/axe-selenium-java/pull/27))
This example demonstrates how to use aXe to run web accessibility tests in Java projects with the Selenium browser automation tool and Java development tools.
5
+
This example demonstrates how to use axe to run web accessibility tests in Java projects with the Selenium browser automation tool and Java development tools.
6
6
7
7
Selenium integration enables testing of full pages and sites.
8
8
9
9
## Requirements
10
10
11
11
- Chrome must be installed; follow the directions at https://www.google.com/chrome/ to install it. On Unix, ensure that Chrome is on your path.
12
-
- Chrome Driver must be installed; follow the directions at: https://sites.google.com/a/chromium.org/chromedriver/getting-started to install it.
13
12
- The Java SE Development Kit must be installed; follow the directions at http://www.oracle.com/technetwork/java/javase/downloads/index.html to install it.
14
13
- Maven must be installed; follow the directions at http://maven.apache.org/ to install it. Ensure that it is on your path.
15
14
16
15
## To run the example
17
16
18
-
1. Move to the `selenium-java` directory.
19
-
2. Ensure that `axe.min.js` is located in `/src/test/resources`.
20
-
3.`node src/test/resources/test-app.js` to start the fixture server.
21
-
4.`mvn test` to build and run the JUnit tests that drive Selenium against the fixture.
17
+
1. Move to the `axe-core-maven-html` directory.
18
+
2.`node src/test/resources/test-app.js` to start the fixture server.
19
+
3.`mvn test` to build and run the JUnit tests that drive Selenium against the fixture.
22
20
23
-
This should launch an automated Firefox window, load and analyze the configured web pages, and then pass/fail a JUnit test depending on whether there are any accessibility violations detected.
21
+
This should launch an automated Chrome window, load and analyze the configured web pages, and then pass/fail a JUnit test depending on whether there are any accessibility violations detected.
24
22
25
23
## To modify the example
26
24
@@ -32,30 +30,27 @@ Include this library as a test-scoped dependency in your POM. Ensure the `versio
32
30
33
31
```xml
34
32
<dependency>
35
-
<groupId>com.deque</groupId>
36
-
<artifactId>axe-selenium</artifactId>
37
-
<version>3.0</version>
38
-
<scope>test</scope>
33
+
<groupId>com.deque.html.axe-core</groupId>
34
+
<artifactId>selenium</artifactId>
35
+
<version>3.1-SNAPSHOT</version>
36
+
<scope>test</scope>
39
37
</dependency>
40
38
```
41
39
42
-
`axe.js` or `axe.min.js` must be available to your test fixtures as a `java.net.URL`. The simplest way to do this is to include it in your own `src.test.resources` and pass `MyTest.class.getResource("/axe.min.js")` to the `Builder` constructor as demonstrated in the `ExampleTest`.
40
+
The `AxeBuilder` type is the main interface. Pass it a Selenium `WebDriver` instance, configure it,
41
+
and run the `analyze` method to get results.
43
42
44
-
The `AXE` helper defines three public methods and a nested `Builder` class for your unit tests.
45
-
46
-
-`inject` will inject the required script into the page under test and any iframes. This only needs to be run against a given page once, and `Builder` will take care of it for you if you use that.
47
-
-`report` will pretty-print a list of violations.
48
-
-`writeResults` will write the JSON violations list out to a file with the specified name in the current working directory.
49
-
50
-
The `Builder` class allows tests to chain configuration and analyze pages. The constructor takes in a `WebDriver` that has already navigated to the page under test and a `java.net.URL` pointing to the aXe script; from there, you can set `options()`, `include()` and `exclude()` selectors, `skipFrames()`, and finally, `analyze()` the page.
51
-
52
-
-`options` wires a JSON string to aXe, allowing rules to be toggled on or off. See the `testAccessibilityWithOptions` unit test for a sample single-rule execution, and the [axe-core API documentation](https://github.com/dequelabs/axe-core/blob/master/doc/API.md#b-options-parameter) for full documentation on the options object. The runOnly option with tags may be of particular interest, allowing aXe to execute all rules with the specified tag(s).
53
-
-`include` adds to the list of included selectors. If you do not call `include` at all, aXe will run against the entire document.
43
+
-`options` wires a JSON string to axe, allowing rules to be toggled on or off.
44
+
See the `testAccessibilityWithOptions` unit test for a sample single-rule execution, and the
45
+
[axe-core API documentation](https://github.com/dequelabs/axe-core/blob/master/doc/API.md#b-options-parameter)
46
+
for full documentation on the options object. The runOnly option with tags may be of particular interest, allowing axe to execute all rules with the specified tag(s).
47
+
-`include` adds to the list of included selectors. If you do not call `include` at all, axe will run against the entire document.
54
48
-`exclude` adds to the list of excluded selectors. Exclusions allow you to focus scope exactly where you need it, ignoring child elements you don't want to test.
55
-
-`skipFrames` prevents aXe to be recursively injected into all iframes.
56
-
-`analyze` executes aXe with any configuration you have previously defined. If you want to test a single `WebElement`, you may pass it into `analyze` instead of using `include` and `exclude`.
57
-
58
-
The aXe documentation should be consulted for more details on customizing and analyzing calls to `axe.run`.
49
+
-`withOptions` takes an options object to be passed to the `axe.run` call.
50
+
-`withTags` limits rules run to those that match specified tags.
51
+
-`withOnlyRules` limites rules run to those specified.
52
+
-`disabledRules` disables rules.
53
+
-`analyze` executes axe with any configuration you have previously defined. If you want to test one or more `WebElement`s, you may pass them into `analyze` instead of using `include` and `exclude`.
0 commit comments