Skip to content

Commit f8fc552

Browse files
authored
chore: RC v4.11.0 (#457)
## [4.11.0](v4.10.3...v4.11.0) (2025-10-16) ### Features * Update axe-core to v4.11.0 ([#452](#452)) ([8101733](8101733)) ### Bug Fixes * allow passing extra options to Selenium::WebDriver ([#431](#431)) ([720be7c](720be7c)) * Update axe-core to v4.10.3 ([#433](#433)) ([29253e3](29253e3)) ## [4.10.2](v4.10.1...v4.10.2) (2024-11-08)
2 parents 9974275 + 08edeed commit f8fc552

File tree

9 files changed

+57
-24
lines changed

9 files changed

+57
-24
lines changed

.circleci/config.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ commands:
1515
description: Install dependencies and bootstrap packages
1616
steps:
1717
- checkout
18-
- browser-tools/install-browser-tools:
19-
chrome-version: 126.0.6478.182
20-
replace-existing-chrome: true
18+
- browser-tools/install-browser-tools
2119
- node/install:
22-
node-version: "16.13"
20+
node-version: "22"
2321
- run: gem install bundler # setup bundler
2422
- run: rake bootstrap # bootstrap packages
2523

@@ -87,7 +85,7 @@ jobs:
8785
steps:
8886
- checkout
8987
- node/install:
90-
node-version: "16.13"
88+
node-version: "22"
9189
- bootstrap
9290
- run: bash .circleci/print_license.sh
9391

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
44

5+
## [4.11.0](https://github.com/dequelabs/axe-core-gems/compare/v4.10.3...v4.11.0) (2025-10-16)
6+
7+
8+
### Features
9+
10+
* Update axe-core to v4.11.0 ([#452](https://github.com/dequelabs/axe-core-gems/issues/452)) ([8101733](https://github.com/dequelabs/axe-core-gems/commit/810173356753ea544dab57bade456d5758aa9f0d))
11+
12+
13+
### Bug Fixes
14+
15+
* allow passing extra options to Selenium::WebDriver ([#431](https://github.com/dequelabs/axe-core-gems/issues/431)) ([720be7c](https://github.com/dequelabs/axe-core-gems/commit/720be7ca2d6119edcb9f1e3b1d64354aafc653bf))
16+
* Update axe-core to v4.10.3 ([#433](https://github.com/dequelabs/axe-core-gems/issues/433)) ([29253e3](https://github.com/dequelabs/axe-core-gems/commit/29253e39fd5489b290bab981caf74ed6fc0a6972))
17+
18+
## [4.10.2](https://github.com/dequelabs/axe-core-gems/compare/v4.10.1...v4.10.2) (2024-11-08)
19+
520
## [4.10.3](https://github.com/dequelabs/axe-core-gems/compare/v4.10.1...v4.10.3) (2025-04-11)
621

722
### Bug Fixes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "axe-core-gems",
3-
"version": "4.10.3",
3+
"version": "4.11.0",
44
"license": "MPL-2.0",
55
"private": true,
66
"repository": {

packages/axe-core-api/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/axe-core-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "axe-core-api",
33
"license": "MPL-2.0",
44
"dependencies": {
5-
"axe-core": "^4.10.3"
5+
"axe-core": "^4.11.0"
66
}
77
}

packages/axe-core-selenium/README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,34 @@ require 'axe-selenium'
2020
# configure `AxeSelenium`
2121

2222
driver = AxeSelenium.configure(:firefox) do |c|
23-
# see below for a full list of configuration
23+
# see below for a full list of configuration
2424
c.jslib_path = "next-version/axe.js"
2525
end
2626

2727
# use the driver configuration instance
2828
driver.page.navigate.to 'https://www.deque.com/'
2929
```
3030

31-
### API
31+
Custom options can be passed to the underlying driver:
32+
33+
```rb
34+
require 'axe-selenium'
35+
36+
options = Selenium::WebDriver::Options.firefox
37+
options.args << '-headless'
38+
39+
driver = AxeSelenium.configure(:firefox, options) {}
40+
```
41+
42+
### API
3243

3344
#### `AxeSelenium.configure`
3445

3546
The configure method takes 1 optional argument as a [symbol][] and a configuration block object: `configure(*arg, &block)`
3647

3748
The optional argument is a browser name for `selenium-webdriver`. The valid browser names are:
3849
- `:firefox` (default)
39-
- `:chrome`
50+
- `:chrome`
4051
- `:safari`
4152

4253
> Note: Please ensure respective drivers (eg: [`geckodriver`][]) are installed in your machine.
@@ -67,4 +78,4 @@ bundle exec rspec
6778
[axe API]: https://github.com/dequelabs/axe-core/blob/develop/doc/API.md
6879
[Selenium Webdriver]: https://rubygems.org/gems/selenium-webdriver
6980
[`geckodriver`]: https://github.com/mozilla/geckodriver/releases
70-
[symbol]: https://ruby-doc.org/core-2.5.0/Symbol.html
81+
[symbol]: https://ruby-doc.org/core-2.5.0/Symbol.html

packages/axe-core-selenium/lib/axe-selenium.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
44
module AxeSelenium
55
# configure method
66
# - which takes an optional argument browser
7+
# - an optional options (sic) object to configure the underlying driver
78
# - and a configuration block optional for Axe
8-
def self.configure(browser = :firefox)
9-
# instantiate axe configuration (singleton) with defaults or given config
9+
def self.configure(browser = :firefox, opts = nil)
10+
# instantiate axe configuration (singleton) with defaults or given config: opts
1011
if !block_given?
1112
raise Exception.new "Please provide a configure block for AxeSelenium"
1213
end
1314

1415
config = Axe::Configuration.instance
1516

1617
# provide a selenium webdriver page object
17-
config.page = get_driver(browser)
18+
config.page = get_driver(browser, opts)
1819

1920
# await and return
2021
yield config
@@ -23,7 +24,7 @@ def self.configure(browser = :firefox)
2324

2425
private
2526

26-
def self.get_driver(browserSymbol)
27-
Selenium::WebDriver.for browserSymbol
27+
def self.get_driver(browserSymbol, opts)
28+
Selenium::WebDriver.for browserSymbol, options: opts
2829
end
2930
end

packages/axe-core-selenium/spec/axe-selenium_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717
expect(driver).to respond_to :jslib
1818
expect(driver.jslib).to include("axe.run=") # has axe injected
1919
end
20+
21+
it "gets passed configuration options" do
22+
options = Selenium::WebDriver::Options.firefox
23+
options.args << '-headless'
24+
expect(Selenium::WebDriver).to receive(:for).with(:firefox, {options: options})
25+
driver = AxeSelenium.configure(:firefox, options) do
26+
end
27+
end
2028
end
2129

2230
describe "#configure" do

version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# this version is used by all the packages
22

33
module AxeCoreGems
4-
VERSION = "4.10.3"
4+
VERSION = "4.11.0"
55
end

0 commit comments

Comments
 (0)