axe-core-capybara 4.6.1.pre.bb0471d → 4.6.1.pre.c43ee49
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/axe-capybara.rb +4 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c30e516f888f6488b236931bf46acb70c760ddbdf6ab5e658c03d623115e47c6
|
4
|
+
data.tar.gz: f97e4e3af50a78498dc56cfa0ee00a5833625627dbc39e96a25e85844044a4d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ad7273eeaa7837aea4510ea7dc1b0e80264a3e9a936501cea3914bcb69599921ee44b48f619d5897c1de7a76846ebbdc948a507331f7b142963cdb19c3b6056
|
7
|
+
data.tar.gz: 50c11dee8c8dbb6b6c0b57f132f4c4762d1be8a01df620375b5975c584b062d29ea3082463b5d4d68c64bd1d2e518bf883df68c4994fb465b556ac1e4ae2369e
|
data/lib/axe-capybara.rb
CHANGED
@@ -14,7 +14,8 @@ module AxeCapybara
|
|
14
14
|
|
15
15
|
config = Axe::Configuration.instance
|
16
16
|
|
17
|
-
|
17
|
+
# provide a capybara webdriver page object
|
18
|
+
config.page = get_driver(browser)
|
18
19
|
|
19
20
|
# await and return
|
20
21
|
yield config
|
@@ -23,14 +24,7 @@ module AxeCapybara
|
|
23
24
|
|
24
25
|
private
|
25
26
|
|
26
|
-
def self.
|
27
|
-
|
28
|
-
Capybara.default_driver = :selenium_chrome
|
29
|
-
Capybara.javascript_driver = :selenium_chrome
|
30
|
-
else
|
31
|
-
Capybara.default_driver = :selenium
|
32
|
-
Capybara.javascript_driver = :selenium
|
33
|
-
end
|
34
|
-
Capybara::Selenium::Driver.new(nil, :browser => browserSymbol)
|
27
|
+
def self.get_driver(browserSymbol)
|
28
|
+
Capybara::Selenium::Driver.new nil, :browser => browserSymbol
|
35
29
|
end
|
36
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: axe-core-capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.6.1.pre.
|
4
|
+
version: 4.6.1.pre.c43ee49
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Deque Systems
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dumb_delegator
|