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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64155d2259782f57944c79be0c7abc97f7f68414
4
- data.tar.gz: 85dcd89af998ec330c62683c0ac24b4e93b52a4d
3
+ metadata.gz: 7baeb74e367e7fd1d5fa2ad0609787d9d865eedb
4
+ data.tar.gz: 0ba12f4e292fcd339d6b1e6b037d35f8ef13747b
5
5
  SHA512:
6
- metadata.gz: 4ad9535717490cdeb9d140211afd0a4d346c75843352fe4d67463dbb6e883fe413af7eb43fe28efeab5e163eb103ce0778d975c04ab6e2dd0ee29e9be22a14ea
7
- data.tar.gz: 1e8ca6a7be5f88c3ad3bd9281ac2334b62d8c1c8498e028431d5093922fc4d82d77e2d04656780894b122be25c66d9bde62222999849aaff40265ad83af24c0c
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
  #
@@ -1,3 +1,3 @@
1
1
  module Gridium
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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
- unless asserted_element.enabled?
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.3
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-08-31 00:00:00.000000000 Z
11
+ date: 2015-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler