gridium 1.1.23 → 1.1.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/element.rb +4 -0
- data/lib/page.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5de1d40afe9f3ad0aa18c4ba6d832e7b631999f3
|
4
|
+
data.tar.gz: 72737f602a9367424e46e88c6ee6fccfb2033cbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0adc53ee7d638764b5eacdbde183d70c2e0332e1ddec21af49b1cdbda20ad5bd30429008526ab640bb4d6975c804f9b6ba6c54d70c6bbb1aaa8711d4d2cff682
|
7
|
+
data.tar.gz: c4deb07b0b3bba2838563ea8e6755a504474c108c0f881f420a66836334c92227f44e46921feb4b24fe70660de595288a2d3ab51b71cff24c266fc8207052932
|
data/lib/element.rb
CHANGED
data/lib/page.rb
CHANGED
@@ -66,7 +66,12 @@ module Gridium
|
|
66
66
|
|
67
67
|
begin
|
68
68
|
elem = Element.new("#{button_text} button", :xpath, "//button[contains(., \"#{button_text}\")]", timeout: timeout)
|
69
|
-
|
69
|
+
|
70
|
+
if opts[:disabled]
|
71
|
+
wait.until {elem.disabled?}
|
72
|
+
else
|
73
|
+
wait.until {elem.enabled?}
|
74
|
+
end
|
70
75
|
rescue Exception => exception
|
71
76
|
Log.debug("[GRIDIUM::Page] has_button? is false because this exception was rescued: #{exception}")
|
72
77
|
return false
|