watir 6.16.3 → 6.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/actions/enable-safari/action.yml +11 -0
- data/.github/actions/install-chrome/action.yml +11 -0
- data/.github/workflows/linux.yml +61 -0
- data/.github/workflows/mac.yml +55 -0
- data/.github/workflows/unit.yml +37 -0
- data/.github/workflows/windows.yml +39 -0
- data/.rubocop.yml +32 -107
- data/.rubocop_todo.yml +36 -0
- data/CHANGES.md +55 -0
- data/Gemfile +3 -1
- data/LICENSE +2 -2
- data/README.md +9 -10
- data/Rakefile +4 -4
- data/lib/watir-webdriver.rb +1 -1
- data/lib/watir.rb +3 -1
- data/lib/watir/adjacent.rb +8 -10
- data/lib/watir/after_hooks.rb +4 -4
- data/lib/watir/alert.rb +1 -0
- data/lib/watir/attribute_helper.rb +2 -0
- data/lib/watir/browser.rb +7 -3
- data/lib/watir/capabilities.rb +245 -97
- data/lib/watir/cookies.rb +3 -1
- data/lib/watir/element_collection.rb +21 -6
- data/lib/watir/elements/element.rb +66 -53
- data/lib/watir/elements/file_field.rb +1 -0
- data/lib/watir/elements/html_elements.rb +0 -1
- data/lib/watir/elements/iframe.rb +4 -3
- data/lib/watir/elements/link.rb +0 -9
- data/lib/watir/elements/radio.rb +1 -1
- data/lib/watir/elements/select.rb +22 -7
- data/lib/watir/generator/base/spec_extractor.rb +4 -4
- data/lib/watir/generator/html/generator.rb +1 -1
- data/lib/watir/has_window.rb +17 -15
- data/lib/watir/http_client.rb +17 -0
- data/lib/watir/js_execution.rb +3 -3
- data/lib/watir/js_snippets.rb +2 -2
- data/lib/watir/legacy_wait.rb +1 -1
- data/lib/watir/locators.rb +1 -3
- data/lib/watir/locators/element/locator.rb +12 -6
- data/lib/watir/locators/element/selector_builder.rb +12 -13
- data/lib/watir/locators/element/selector_builder/xpath.rb +40 -13
- data/lib/watir/locators/text_field/selector_builder/xpath.rb +3 -1
- data/lib/watir/logger.rb +7 -20
- data/lib/watir/radio_set.rb +2 -2
- data/lib/watir/user_editable.rb +6 -2
- data/lib/watir/version.rb +1 -1
- data/lib/watir/wait.rb +2 -0
- data/lib/watir/wait/timer.rb +1 -1
- data/lib/watir/window.rb +8 -4
- data/lib/watir/window_collection.rb +114 -0
- data/lib/watirspec.rb +2 -1
- data/lib/watirspec/guards.rb +1 -1
- data/lib/watirspec/implementation.rb +3 -5
- data/lib/watirspec/rake_tasks.rb +2 -0
- data/lib/watirspec/runner.rb +6 -2
- data/lib/watirspec/server.rb +1 -1
- data/spec/spec_helper.rb +2 -7
- data/spec/unit/capabilities_spec.rb +1234 -18
- data/spec/unit/container_spec.rb +1 -1
- data/spec/unit/logger_spec.rb +5 -7
- data/spec/unit/match_elements/element_spec.rb +17 -15
- data/spec/unit/selector_builder/button_spec.rb +16 -15
- data/spec/unit/selector_builder/element_spec.rb +58 -9
- data/spec/unit/selector_builder/text_field_spec.rb +14 -14
- data/spec/unit/unit_helper.rb +2 -4
- data/spec/watirspec/after_hooks_spec.rb +58 -68
- data/spec/watirspec/alert_spec.rb +69 -79
- data/spec/watirspec/browser_spec.rb +51 -48
- data/spec/watirspec/cookies_spec.rb +52 -37
- data/spec/watirspec/drag_and_drop_spec.rb +14 -38
- data/spec/watirspec/elements/button_spec.rb +2 -0
- data/spec/watirspec/elements/buttons_spec.rb +1 -1
- data/spec/watirspec/elements/checkbox_spec.rb +8 -4
- data/spec/watirspec/elements/date_field_spec.rb +18 -9
- data/spec/watirspec/elements/date_time_field_spec.rb +3 -4
- data/spec/watirspec/elements/div_spec.rb +62 -54
- data/spec/watirspec/elements/element_spec.rb +73 -88
- data/spec/watirspec/elements/elements_spec.rb +12 -3
- data/spec/watirspec/elements/filefield_spec.rb +25 -50
- data/spec/watirspec/elements/form_spec.rb +6 -8
- data/spec/watirspec/elements/frame_spec.rb +10 -13
- data/spec/watirspec/elements/iframe_spec.rb +12 -9
- data/spec/watirspec/elements/iframes_spec.rb +2 -2
- data/spec/watirspec/elements/link_spec.rb +23 -12
- data/spec/watirspec/elements/links_spec.rb +11 -3
- data/spec/watirspec/elements/option_spec.rb +15 -17
- data/spec/watirspec/elements/select_list_spec.rb +222 -117
- data/spec/watirspec/elements/text_field_spec.rb +8 -4
- data/spec/watirspec/elements/tr_spec.rb +0 -9
- data/spec/watirspec/html/forms_with_input_elements.html +1 -0
- data/spec/watirspec/html/iframes.html +3 -0
- data/spec/watirspec/html/non_control_elements.html +4 -4
- data/spec/watirspec/html/right_click.html +12 -0
- data/spec/watirspec/html/wait.html +6 -6
- data/spec/watirspec/html/window_switching.html +10 -0
- data/spec/watirspec/legacy_wait_spec.rb +216 -0
- data/spec/watirspec/support/rspec_matchers.rb +33 -14
- data/spec/watirspec/user_editable_spec.rb +1 -1
- data/spec/watirspec/wait_spec.rb +257 -305
- data/spec/watirspec/window_switching_spec.rb +338 -211
- data/spec/watirspec_helper.rb +17 -20
- data/support/doctest_helper.rb +0 -2
- data/watir.gemspec +6 -7
- metadata +37 -26
- data/.travis.yml +0 -84
- data/appveyor.yml +0 -12
- data/lib/watir/elements/area.rb +0 -10
- data/spec/watirspec/relaxed_locate_spec.rb +0 -113
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 249f59d4a6bd6bff5ddd7e49d32e2cc5a3ecd887586de1a41d51aecc37c6946a
|
4
|
+
data.tar.gz: 407024609aa1b7e0eb052ecbcc279ebdfcb6e486e326ee8f1dd0994b79f4be75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f89c38c9bd61bef959ebb41672e729be867ad7991530f6f432dddae7900db15c31dfd717d413cc500f5f2708a3ce500b3d9687091d603ca4e4acbfbbc5af20cc
|
7
|
+
data.tar.gz: 34f9dc6a5e675c734c4a2e5e5c234695204b23ba887268f523c95d72f33a0b5b02c843fcd61033592c8e937b721d86bc80b790e9b06c4c9ca4d03f7b55df7357
|
@@ -0,0 +1,11 @@
|
|
1
|
+
name: 'Enable Safari Driver'
|
2
|
+
description: 'Set safaridriver to run in automation mode'
|
3
|
+
runs:
|
4
|
+
using: composite
|
5
|
+
steps:
|
6
|
+
- run: |
|
7
|
+
defaults write com.apple.Safari IncludeDevelopMenu YES
|
8
|
+
defaults write com.apple.Safari AllowRemoteAutomation 1
|
9
|
+
sudo safaridriver --enable
|
10
|
+
safaridriver -p 0 &
|
11
|
+
shell: bash
|
@@ -0,0 +1,11 @@
|
|
1
|
+
name: 'Install Chrome'
|
2
|
+
runs:
|
3
|
+
using: "composite"
|
4
|
+
steps:
|
5
|
+
- run: |
|
6
|
+
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
|
7
|
+
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee -a /etc/apt/sources.list.d/google-chrome.list
|
8
|
+
sudo apt-get update -qqy
|
9
|
+
sudo apt-get -qqy install google-chrome-stable
|
10
|
+
sudo rm /etc/apt/sources.list.d/google-chrome.list
|
11
|
+
shell: bash
|
@@ -0,0 +1,61 @@
|
|
1
|
+
name: Linux Tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
- push
|
5
|
+
- pull_request
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
chrome-test:
|
9
|
+
name: Chrome Test
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
strategy:
|
12
|
+
fail-fast: false
|
13
|
+
matrix:
|
14
|
+
task: [ 'chrome' ]
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v2
|
17
|
+
- uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: 2.5
|
20
|
+
- run: bundle install
|
21
|
+
- uses: ./.github/actions/install-chrome
|
22
|
+
- run: Xvfb :99 &
|
23
|
+
- run: |
|
24
|
+
bundle exec rake spec:${{ matrix.task }}
|
25
|
+
env:
|
26
|
+
DISPLAY: :99
|
27
|
+
|
28
|
+
firefox-test:
|
29
|
+
name: Firefox Test
|
30
|
+
runs-on: ubuntu-latest
|
31
|
+
strategy:
|
32
|
+
fail-fast: false
|
33
|
+
matrix:
|
34
|
+
task: [ 'firefox' ]
|
35
|
+
steps:
|
36
|
+
- uses: actions/checkout@v2
|
37
|
+
- uses: ruby/setup-ruby@v1
|
38
|
+
with:
|
39
|
+
ruby-version: 2.5
|
40
|
+
- run: bundle install
|
41
|
+
- run: Xvfb :99 &
|
42
|
+
- run: |
|
43
|
+
bundle exec rake spec:${{ matrix.task }}
|
44
|
+
env:
|
45
|
+
DISPLAY: :99
|
46
|
+
|
47
|
+
documentation-test:
|
48
|
+
name: Yard Doc Test
|
49
|
+
runs-on: ubuntu-latest
|
50
|
+
steps:
|
51
|
+
- uses: actions/checkout@v2
|
52
|
+
- uses: ruby/setup-ruby@v1
|
53
|
+
with:
|
54
|
+
ruby-version: 2.5
|
55
|
+
- run: bundle install
|
56
|
+
- uses: ./.github/actions/install-chrome
|
57
|
+
- run: Xvfb :99 &
|
58
|
+
- run: |
|
59
|
+
bundle exec rake yard:doctest
|
60
|
+
env:
|
61
|
+
DISPLAY: :99
|
@@ -0,0 +1,55 @@
|
|
1
|
+
name: Mac Tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
- push
|
5
|
+
- pull_request
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
chrome-test:
|
9
|
+
name: Chrome Test
|
10
|
+
runs-on: macos-latest
|
11
|
+
strategy:
|
12
|
+
fail-fast: false
|
13
|
+
matrix:
|
14
|
+
task: [ 'chrome' ]
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v2
|
17
|
+
- uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: 2.5
|
20
|
+
- run: bundle install
|
21
|
+
- run: |
|
22
|
+
bundle exec rake spec:${{ matrix.task }}
|
23
|
+
|
24
|
+
firefox-test:
|
25
|
+
name: Firefox Test
|
26
|
+
runs-on: macos-latest
|
27
|
+
strategy:
|
28
|
+
fail-fast: false
|
29
|
+
matrix:
|
30
|
+
task: [ 'firefox' ]
|
31
|
+
steps:
|
32
|
+
- uses: actions/checkout@v2
|
33
|
+
- uses: ruby/setup-ruby@v1
|
34
|
+
with:
|
35
|
+
ruby-version: 2.5
|
36
|
+
- run: bundle install
|
37
|
+
- run: |
|
38
|
+
bundle exec rake spec:${{ matrix.task }}
|
39
|
+
|
40
|
+
safari-test:
|
41
|
+
name: Safari Test
|
42
|
+
runs-on: macos-latest
|
43
|
+
strategy:
|
44
|
+
fail-fast: false
|
45
|
+
matrix:
|
46
|
+
task: [ 'safari' ]
|
47
|
+
steps:
|
48
|
+
- uses: actions/checkout@v2
|
49
|
+
- uses: ruby/setup-ruby@v1
|
50
|
+
with:
|
51
|
+
ruby-version: 2.5
|
52
|
+
- run: bundle install
|
53
|
+
- uses: ./.github/actions/enable-safari
|
54
|
+
- run: |
|
55
|
+
bundle exec rake spec:${{ matrix.task }}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
name: Unit Tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
- push
|
5
|
+
- pull_request
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
unit-test:
|
9
|
+
name: Unit Tests
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
strategy:
|
12
|
+
fail-fast: false
|
13
|
+
matrix:
|
14
|
+
ruby: ['2.5', '2.6', '2.7', '3.0']
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v2
|
17
|
+
- uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: ${{ matrix.ruby }}
|
20
|
+
- run: bundle install
|
21
|
+
- uses: ./.github/actions/install-chrome
|
22
|
+
- run: Xvfb :99 &
|
23
|
+
- run: |
|
24
|
+
bundle exec rake spec:unit
|
25
|
+
env:
|
26
|
+
DISPLAY: :99
|
27
|
+
|
28
|
+
linter-test:
|
29
|
+
name: Rubocop Tests
|
30
|
+
runs-on: ubuntu-latest
|
31
|
+
steps:
|
32
|
+
- uses: actions/checkout@v2
|
33
|
+
- uses: ruby/setup-ruby@v1
|
34
|
+
with:
|
35
|
+
ruby-version: 2.5
|
36
|
+
- run: bundle install
|
37
|
+
- run: bundle exec rubocop
|
@@ -0,0 +1,39 @@
|
|
1
|
+
name: Windows Tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
- push
|
5
|
+
- pull_request
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
chrome-test:
|
9
|
+
name: Chrome Test
|
10
|
+
runs-on: windows-latest
|
11
|
+
strategy:
|
12
|
+
fail-fast: false
|
13
|
+
matrix:
|
14
|
+
task: [ 'chrome' ]
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v2
|
17
|
+
- uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: 2.5
|
20
|
+
- run: bundle install
|
21
|
+
- run: |
|
22
|
+
bundle exec rake spec:${{ matrix.task }}
|
23
|
+
firefox-test:
|
24
|
+
name: Firefox Test
|
25
|
+
runs-on: windows-latest
|
26
|
+
strategy:
|
27
|
+
fail-fast: false
|
28
|
+
matrix:
|
29
|
+
task: [ 'firefox' ]
|
30
|
+
steps:
|
31
|
+
- uses: actions/checkout@v2
|
32
|
+
- uses: ruby/setup-ruby@v1
|
33
|
+
with:
|
34
|
+
ruby-version: 2.5
|
35
|
+
- run: bundle install
|
36
|
+
- run: |
|
37
|
+
bundle exec rake spec:${{ matrix.task }}
|
38
|
+
|
39
|
+
|
data/.rubocop.yml
CHANGED
@@ -1,46 +1,36 @@
|
|
1
|
-
|
2
|
-
# Cop supports --auto-correct.
|
3
|
-
# Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
4
|
-
Layout/EmptyLineBetweenDefs:
|
5
|
-
Exclude:
|
6
|
-
- 'lib/watir/elements/html_elements.rb'
|
7
|
-
- 'lib/watir/elements/svg_elements.rb'
|
1
|
+
inherit_from: .rubocop_todo.yml
|
8
2
|
|
9
|
-
|
10
|
-
|
11
|
-
|
3
|
+
AllCops:
|
4
|
+
TargetRubyVersion: 2.5.8
|
5
|
+
NewCops: enable
|
12
6
|
Exclude:
|
13
7
|
- 'lib/watir/elements/html_elements.rb'
|
14
8
|
- 'lib/watir/elements/svg_elements.rb'
|
15
9
|
|
16
|
-
|
17
|
-
|
18
|
-
# Configuration parameters: EnforcedStyle.
|
19
|
-
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
20
|
-
Layout/EmptyLinesAroundModuleBody:
|
21
|
-
Exclude:
|
22
|
-
- 'lib/watir/elements/html_elements.rb'
|
23
|
-
- 'lib/watir/elements/svg_elements.rb'
|
10
|
+
Layout/LineLength:
|
11
|
+
Max: 120
|
24
12
|
|
25
|
-
# Offense count: 85
|
26
|
-
# Cop supports --auto-correct.
|
27
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
28
|
-
# SupportedStyles: space, no_space, compact
|
29
|
-
# SupportedStylesForEmptyBraces: space, no_space
|
30
13
|
Layout/SpaceInsideHashLiteralBraces:
|
31
14
|
EnforcedStyle: no_space
|
32
15
|
|
33
|
-
# Offense count: 1
|
34
|
-
Lint/HandleExceptions:
|
35
|
-
Exclude:
|
36
|
-
- 'lib/watirspec.rb'
|
37
|
-
|
38
16
|
Lint/UnifiedInteger:
|
39
17
|
Exclude:
|
40
18
|
- 'lib/watir/locators/element/selector_builder.rb'
|
41
19
|
|
42
|
-
#
|
43
|
-
|
20
|
+
# Default: 17
|
21
|
+
Metrics/AbcSize:
|
22
|
+
Max: 20
|
23
|
+
Exclude:
|
24
|
+
- 'lib/watir/capabilities.rb'
|
25
|
+
- 'lib/watir/locators/element/selector_builder.rb'
|
26
|
+
- 'lib/watir/locators/element/selector_builder/regexp_disassembler.rb'
|
27
|
+
- 'lib/watir/locators/element/selector_builder/xpath.rb'
|
28
|
+
- 'lib/watir/locators/element/locator.rb'
|
29
|
+
- 'lib/watir/generator/base/generator.rb'
|
30
|
+
- 'lib/watir/generator/base/visitor.rb'
|
31
|
+
- 'spec/locator_spec_helper.rb'
|
32
|
+
- 'spec/watirspec_helper.rb'
|
33
|
+
|
44
34
|
Metrics/BlockLength:
|
45
35
|
Exclude:
|
46
36
|
- 'spec/**/*'
|
@@ -48,21 +38,6 @@ Metrics/BlockLength:
|
|
48
38
|
- 'watir.gemspec'
|
49
39
|
- 'Rakefile'
|
50
40
|
|
51
|
-
## Configuration parameters: CountComments.
|
52
|
-
Metrics/ModuleLength:
|
53
|
-
Exclude:
|
54
|
-
- 'lib/watir/elements/html_elements.rb'
|
55
|
-
- 'lib/watir/elements/svg_elements.rb'
|
56
|
-
|
57
|
-
# Configuration parameters: CountComments.
|
58
|
-
Metrics/MethodLength:
|
59
|
-
Max: 18
|
60
|
-
Exclude:
|
61
|
-
- 'lib/watir/locators/element/selector_builder.rb'
|
62
|
-
- 'lib/watir/locators/element/selector_builder/xpath.rb'
|
63
|
-
- 'lib/watir/locators/element/selector_builder/regexp_disassembler.rb'
|
64
|
-
|
65
|
-
# Configuration parameters: CountComments.
|
66
41
|
Metrics/ClassLength:
|
67
42
|
Max: 93
|
68
43
|
Exclude:
|
@@ -77,42 +52,24 @@ Metrics/ClassLength:
|
|
77
52
|
- 'lib/watir/generator/base/spec_extractor.rb'
|
78
53
|
- 'lib/watir/element_collection.rb'
|
79
54
|
|
80
|
-
|
81
|
-
Max: 10
|
82
|
-
|
55
|
+
# Default: 7
|
83
56
|
Metrics/CyclomaticComplexity:
|
84
|
-
Max:
|
57
|
+
Max: 9
|
85
58
|
Exclude:
|
86
|
-
|
59
|
+
- 'lib/watir/locators/element/selector_builder.rb'
|
87
60
|
|
88
|
-
|
89
|
-
|
61
|
+
# Configuration parameters: CountComments.
|
62
|
+
Metrics/MethodLength:
|
63
|
+
Max: 18
|
90
64
|
Exclude:
|
91
65
|
- 'lib/watir/locators/element/selector_builder.rb'
|
92
|
-
- 'lib/watir/locators/element/selector_builder/regexp_disassembler.rb'
|
93
66
|
- 'lib/watir/locators/element/selector_builder/xpath.rb'
|
94
|
-
- 'lib/watir/locators/element/
|
95
|
-
- 'lib/watir/generator/base/generator.rb'
|
96
|
-
- 'lib/watir/generator/base/visitor.rb'
|
97
|
-
- 'spec/locator_spec_helper.rb'
|
98
|
-
|
99
|
-
# TODO: fix with Watir 7
|
100
|
-
# Configuration parameters: CountKeywordArgs.
|
101
|
-
Metrics/ParameterLists:
|
102
|
-
Exclude:
|
103
|
-
- 'lib/watir/wait.rb'
|
67
|
+
- 'lib/watir/locators/element/selector_builder/regexp_disassembler.rb'
|
104
68
|
|
105
|
-
#
|
106
|
-
|
107
|
-
|
108
|
-
Max: 120
|
69
|
+
# Default: 8
|
70
|
+
Metrics/PerceivedComplexity:
|
71
|
+
Max: 10
|
109
72
|
|
110
|
-
# Cop supports --auto-correct.
|
111
|
-
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
112
|
-
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
113
|
-
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
114
|
-
# FunctionalMethods: let, let!, subject, watch
|
115
|
-
# IgnoredMethods: lambda, proc, it
|
116
73
|
Style/BlockDelimiters:
|
117
74
|
EnforcedStyle: braces_for_chaining
|
118
75
|
|
@@ -122,44 +79,12 @@ Style/CommentedKeyword:
|
|
122
79
|
Style/DoubleNegation:
|
123
80
|
Enabled: false
|
124
81
|
|
125
|
-
## Configuration parameters: AllowedVariables.
|
126
82
|
Style/GlobalVars:
|
127
83
|
AllowedVariables:
|
128
84
|
- $browser
|
129
85
|
|
130
|
-
Style/
|
131
|
-
Exclude:
|
132
|
-
- 'spec/watirspec/selector_builder/element_spec.rb'
|
133
|
-
|
134
|
-
### Cop supports --auto-correct.
|
135
|
-
### Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
136
|
-
## SupportedStyles: single_quotes, double_quotes
|
137
|
-
Style/StringLiterals:
|
138
|
-
Exclude:
|
139
|
-
- 'lib/watir/elements/html_elements.rb'
|
140
|
-
- 'lib/watir/elements/svg_elements.rb'
|
141
|
-
|
142
|
-
Style/MethodCallWithoutArgsParentheses:
|
86
|
+
Style/HashEachMethods:
|
143
87
|
Enabled: false
|
144
88
|
|
145
|
-
|
146
|
-
## Configuration parameters: EnforcedStyle.
|
147
|
-
## SupportedStyles: annotated, template, unannotated
|
148
|
-
Style/FormatStringToken:
|
149
|
-
Exclude:
|
150
|
-
- 'lib/watir/browser.rb'
|
151
|
-
- 'lib/watir/locators/text_field/selector_builder/xpath.rb'
|
152
|
-
- 'lib/watir/window.rb'
|
153
|
-
|
154
|
-
Style/Documentation:
|
89
|
+
Style/OptionalBooleanParameter:
|
155
90
|
Enabled: false
|
156
|
-
|
157
|
-
# Cop supports --auto-correct.
|
158
|
-
# Configuration parameters: EnforcedStyle.
|
159
|
-
# SupportedStyles: when_needed, always, never
|
160
|
-
Style/FrozenStringLiteralComment:
|
161
|
-
Enabled: false
|
162
|
-
|
163
|
-
Naming/FileName:
|
164
|
-
Exclude:
|
165
|
-
- 'lib/watir-webdriver.rb'
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2020-08-27 01:55:04 UTC using RuboCop version 0.89.1.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 116
|
10
|
+
Style/Documentation:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
# Offense count: 11
|
14
|
+
# Configuration parameters: EnforcedStyle.
|
15
|
+
# SupportedStyles: annotated, template, unannotated
|
16
|
+
Style/FormatStringToken:
|
17
|
+
Exclude:
|
18
|
+
- 'lib/watir/browser.rb'
|
19
|
+
- 'lib/watir/window.rb'
|
20
|
+
|
21
|
+
# Offense count: 229
|
22
|
+
# Cop supports --auto-correct.
|
23
|
+
# Configuration parameters: EnforcedStyle.
|
24
|
+
# SupportedStyles: always, always_true, never
|
25
|
+
Style/FrozenStringLiteralComment:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
# Remove for Watir 7
|
29
|
+
Naming/FileName:
|
30
|
+
Exclude:
|
31
|
+
- 'lib/watir-webdriver.rb'
|
32
|
+
|
33
|
+
# Fix in Watir 7
|
34
|
+
Metrics/ParameterLists:
|
35
|
+
Exclude:
|
36
|
+
- 'lib/watir/wait.rb'
|