qat-web 9.0.2 → 9.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 430c60ccbae570acfdb1977b4bb5bbebfabe41fbbc1c680bf5a572bcc0af2eab
|
4
|
+
data.tar.gz: 5d915e9e32ab5792d8a4ec052ccd3e771b57f3eedc9512e07bc08c5ceb298fee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ff039a05d077081abfcb680cda83d014ed58b052e011989501b7253a8212011392761f98f1ad9a394c7b2412069671e9a9c6e7ea913b7eb63ad38ad5dd5074c
|
7
|
+
data.tar.gz: 1a92d2e05b4a01b98f72799bbd7d20b57bbd1b4ee65b8c74086a30138784086a5e9800c3d5dacd2a699eefe05e1f8e739c05003e647702cf093c03f6d855cec9
|
@@ -28,7 +28,7 @@ module QAT::Web
|
|
28
28
|
customized_profile = create_profile(driver, browser, properties, addons)
|
29
29
|
options.merge!(customized_profile) if customized_profile
|
30
30
|
end
|
31
|
-
loaded_driver = Capybara.const_get(driver.capitalize)::Driver.new(app, options)
|
31
|
+
loaded_driver = Capybara.const_get(driver.capitalize)::Driver.new(app, **options)
|
32
32
|
loaded_driver.browser
|
33
33
|
end
|
34
34
|
|
@@ -8,7 +8,14 @@ module QAT
|
|
8
8
|
# Returns the collection finder block
|
9
9
|
# @return [Proc]
|
10
10
|
def finder
|
11
|
-
|
11
|
+
selector = @selector
|
12
|
+
proc do
|
13
|
+
if selector.last.is_a?(Hash)
|
14
|
+
all(*selector[0..1], **selector.last)
|
15
|
+
else
|
16
|
+
all(*selector)
|
17
|
+
end
|
18
|
+
end
|
12
19
|
end
|
13
20
|
end
|
14
21
|
end
|
@@ -8,7 +8,14 @@ module QAT
|
|
8
8
|
# Returns the element finder block
|
9
9
|
# @return [Proc]
|
10
10
|
def finder
|
11
|
-
|
11
|
+
selector = @selector
|
12
|
+
proc do
|
13
|
+
if selector.last.is_a?(Hash)
|
14
|
+
find(*selector[0..1], **selector.last)
|
15
|
+
else
|
16
|
+
find(*selector)
|
17
|
+
end
|
18
|
+
end
|
12
19
|
end
|
13
20
|
end
|
14
21
|
end
|
@@ -46,7 +46,7 @@ module QAT
|
|
46
46
|
# @param timeout [Integer] maximum time to wait
|
47
47
|
def wait_until_present(selector, timeout)
|
48
48
|
type, value, options = build_selector(selector, { visible: false, wait: timeout })
|
49
|
-
has_selector?(type, value, options)
|
49
|
+
has_selector?(type, value, **options)
|
50
50
|
end
|
51
51
|
|
52
52
|
# Waits a maximum timeout time until an element is visible on page
|
@@ -54,7 +54,7 @@ module QAT
|
|
54
54
|
# @param timeout [Integer] maximum time to wait
|
55
55
|
def wait_until_visible(selector, timeout)
|
56
56
|
type, value, options = build_selector(selector, { visible: true, wait: timeout })
|
57
|
-
has_selector?(type, value, options)
|
57
|
+
has_selector?(type, value, **options)
|
58
58
|
end
|
59
59
|
|
60
60
|
# Waits a maximum timeout time until an element is no longer present on page
|
@@ -62,7 +62,7 @@ module QAT
|
|
62
62
|
# @param timeout [Integer] maximum time to wait
|
63
63
|
def wait_until_not_present(selector, timeout)
|
64
64
|
type, value, options = build_selector(selector, { wait: timeout })
|
65
|
-
has_no_selector?(type, value, options)
|
65
|
+
has_no_selector?(type, value, **options)
|
66
66
|
end
|
67
67
|
|
68
68
|
# Waits a maximum timeout time until an element is no longer visible on page
|
@@ -70,7 +70,7 @@ module QAT
|
|
70
70
|
# @param timeout [Integer] maximum time to wait
|
71
71
|
def wait_until_not_visible(selector, timeout)
|
72
72
|
type, value, options = build_selector(selector, { visible: false, wait: timeout })
|
73
|
-
has_no_selector?(type, value, options)
|
73
|
+
has_no_selector?(type, value, **options)
|
74
74
|
end
|
75
75
|
|
76
76
|
# Generic wait method
|
data/lib/qat/web/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qat-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.0.
|
4
|
+
version: 9.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- QAT
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: qat-cucumber
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: webrick
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: qat-logger
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|