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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1921f3bf5bc99c7d84694f23696f937de1862ed88ffe8dd780467efcfd2d4c1
4
- data.tar.gz: 8574255c94d0c08c16b070b5c0dbb7659f56d7b3920dea9db474986e7f820622
3
+ metadata.gz: 430c60ccbae570acfdb1977b4bb5bbebfabe41fbbc1c680bf5a572bcc0af2eab
4
+ data.tar.gz: 5d915e9e32ab5792d8a4ec052ccd3e771b57f3eedc9512e07bc08c5ceb298fee
5
5
  SHA512:
6
- metadata.gz: 271d878b603bc0cffd4dc6cba88b5e8c99dd710dd93b234d447cf7043e6adab8ef6467a90119c428833473f9632d2ef7c9b887dfb853b1e12936f8e821de4b26
7
- data.tar.gz: bc8b32b17a4b95e76520e095bb1e4ef03202514b2fa0573a19af2928a9b33e68b79bf18161163747fefd7423fbe210aeb087cb127faf3a403e2f636358f94532
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
- proc { all(*@selector) }
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
- proc { find(*@selector) }
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
@@ -4,6 +4,6 @@ module QAT
4
4
  #@since 1.0.0
5
5
  module Web
6
6
  # Represents QAT-Web's version
7
- VERSION = '9.0.3'
7
+ VERSION = '9.0.4'
8
8
  end
9
9
  end
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.3
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-09-27 00:00:00.000000000 Z
11
+ date: 2023-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: qat-cucumber