gridium 0.1.3 → 0.1.4
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 -1
- data/lib/gridium/version.rb +1 -1
- data/lib/page.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7baeb74e367e7fd1d5fa2ad0609787d9d865eedb
|
4
|
+
data.tar.gz: 0ba12f4e292fcd339d6b1e6b037d35f8ef13747b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d139ebfb9790b820c569fbfc2a716491a775d80f197f71357e94f1869c4b20949bf22ab1359c11a84465db31db15230fb68f26a91bd11176828c9533b996a57c
|
7
|
+
data.tar.gz: 359b26c573ac62358659d18a4f61ab856bcce596eeafa04a3a6e296f1b0f1b019ce95ec9843bedad450a4961b29d1d99254f6cd5ff804b0da7cf132e111cab05
|
data/lib/element.rb
CHANGED
@@ -31,7 +31,6 @@ class Element
|
|
31
31
|
@element = element;
|
32
32
|
end
|
33
33
|
end
|
34
|
-
|
35
34
|
}
|
36
35
|
else
|
37
36
|
wait.until { @element = @driver.find_element(@by, @locator); Log.debug("Finding element #{self}..."); @element.enabled? }
|
@@ -174,6 +173,10 @@ class Element
|
|
174
173
|
element.send_keys text
|
175
174
|
end
|
176
175
|
|
176
|
+
def value
|
177
|
+
element.attribute("value")
|
178
|
+
end
|
179
|
+
|
177
180
|
#
|
178
181
|
# Search for an element within this element
|
179
182
|
#
|
data/lib/gridium/version.rb
CHANGED
data/lib/page.rb
CHANGED
@@ -15,7 +15,7 @@ module Gridium
|
|
15
15
|
|
16
16
|
def self.assert_selector(by, locator)
|
17
17
|
asserted_element = Element.new("Asserted Element", by, locator)
|
18
|
-
|
18
|
+
if asserted_element.eql? nil
|
19
19
|
fail("Could not find element on page with locator #{locator} using #{by}")
|
20
20
|
else
|
21
21
|
Log.info("Asserted Element present with locator #{locator} using #{by}")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gridium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Urban
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|