qat-web 9.0.3 → 9.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/qat/web/elements/collection.rb +8 -1
- data/lib/qat/web/elements/element.rb +8 -1
- data/lib/qat/web/elements/waiters.rb +4 -4
- data/lib/qat/web/version.rb +1 -1
- 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: 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
|
@@ -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
|