axe-core-selenium 4.10.3.pre.4a4faa5 → 4.10.3.pre.19d4810

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -15
  3. data/lib/axe-selenium.rb +5 -6
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e09ed869d4ce7d65956569d358acc832a3f10a4b34416052c95bf4f4cef92da
4
- data.tar.gz: 3abfdac8c4f7890debcf19f812b026439cc09922e0328a1d8cf90b642a6357ee
3
+ metadata.gz: 140a3b47b40911cbb6fe38f5ad5dc5243b137a1238c89edd17de8b4b6203ce3b
4
+ data.tar.gz: 9e3c2bff3941f2cbf2d5303a61f8120e616f10d543cf345a79dc46feb46fc65f
5
5
  SHA512:
6
- metadata.gz: 0cb20f1f281f25f58de3dd2d79ebc2e9a5936cbf09705652c6da9a37894f0ff8a9d03d2b93cb7a76d560dbcbbd97313a8981f43d6dc43440c226da6af8488f92
7
- data.tar.gz: c1ec6d884ff0cc9ac209d97db502ff738aa9354e6d487caecdd83f4cad057584810d38e179feed5b6dcdb5129f02eda935090db62c057fc7d7cf79fd00d137db
6
+ metadata.gz: 512477562d975eb1c3d6d4438ebdd886bd9aa36da867dce7d31ed4244be900372181ebbad83bfca85786ca5ee2e7acf05da97af1508e0dbbcd9a0ccc763f9e2a
7
+ data.tar.gz: 7a553c0da8a585998840aab8c51358f60723ee53add728f0e6b81b5e3a89f3fc1e3a52c4264266e9296125dde26d19cda25924e91d0839dda5ec02b57951216a
data/README.md CHANGED
@@ -20,7 +20,7 @@ require 'axe-selenium'
20
20
  # configure `AxeSelenium`
21
21
 
22
22
  driver = AxeSelenium.configure(:firefox) do |c|
23
- # see below for a full list of configuration
23
+ # see below for a full list of configuration
24
24
  c.jslib_path = "next-version/axe.js"
25
25
  end
26
26
 
@@ -28,18 +28,7 @@ end
28
28
  driver.page.navigate.to 'https://www.deque.com/'
29
29
  ```
30
30
 
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
31
+ ### API
43
32
 
44
33
  #### `AxeSelenium.configure`
45
34
 
@@ -47,7 +36,7 @@ The configure method takes 1 optional argument as a [symbol][] and a configurati
47
36
 
48
37
  The optional argument is a browser name for `selenium-webdriver`. The valid browser names are:
49
38
  - `:firefox` (default)
50
- - `:chrome`
39
+ - `:chrome`
51
40
  - `:safari`
52
41
 
53
42
  > Note: Please ensure respective drivers (eg: [`geckodriver`][]) are installed in your machine.
@@ -78,4 +67,4 @@ bundle exec rspec
78
67
  [axe API]: https://github.com/dequelabs/axe-core/blob/develop/doc/API.md
79
68
  [Selenium Webdriver]: https://rubygems.org/gems/selenium-webdriver
80
69
  [`geckodriver`]: https://github.com/mozilla/geckodriver/releases
81
- [symbol]: https://ruby-doc.org/core-2.5.0/Symbol.html
70
+ [symbol]: https://ruby-doc.org/core-2.5.0/Symbol.html
data/lib/axe-selenium.rb CHANGED
@@ -4,10 +4,9 @@ require "axe/configuration"
4
4
  module AxeSelenium
5
5
  # configure method
6
6
  # - which takes an optional argument browser
7
- # - an optional options (sic) object to configure the underlying driver
8
7
  # - and a configuration block optional for Axe
9
- def self.configure(browser = :firefox, opts = nil)
10
- # instantiate axe configuration (singleton) with defaults or given config: opts
8
+ def self.configure(browser = :firefox)
9
+ # instantiate axe configuration (singleton) with defaults or given config
11
10
  if !block_given?
12
11
  raise Exception.new "Please provide a configure block for AxeSelenium"
13
12
  end
@@ -15,7 +14,7 @@ module AxeSelenium
15
14
  config = Axe::Configuration.instance
16
15
 
17
16
  # provide a selenium webdriver page object
18
- config.page = get_driver(browser, opts)
17
+ config.page = get_driver(browser)
19
18
 
20
19
  # await and return
21
20
  yield config
@@ -24,7 +23,7 @@ module AxeSelenium
24
23
 
25
24
  private
26
25
 
27
- def self.get_driver(browserSymbol, opts)
28
- Selenium::WebDriver.for browserSymbol, options: opts
26
+ def self.get_driver(browserSymbol)
27
+ Selenium::WebDriver.for browserSymbol
29
28
  end
30
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: axe-core-selenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.10.3.pre.4a4faa5
4
+ version: 4.10.3.pre.19d4810
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deque Systems
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-04 00:00:00.000000000 Z
11
+ date: 2025-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dumb_delegator
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 4.10.3.pre.4a4faa5
33
+ version: 4.10.3.pre.19d4810
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 4.10.3.pre.4a4faa5
40
+ version: 4.10.3.pre.19d4810
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement