gridium 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/page.rb +3 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf4d3a157e28f19e0890f63f051a747a320ea2b6
4
- data.tar.gz: c9c2bdc8e4b4a106f531f0c5a52986808c8cfb1e
3
+ metadata.gz: 5afb000b28c6a5271c7adc72058da0149f08f0c6
4
+ data.tar.gz: bacae083805b6a0627a61c9fbf4a24d5ec6eb792
5
5
  SHA512:
6
- metadata.gz: 34f544da1a6a93e8e7156e0d68cfc57c3fccee6ab80102a225932a36d09c3f87353b2995b371367a74b1b04ee3a8fc1ee491c083e61bb8d043d63781266bf674
7
- data.tar.gz: 631a9937560efb72a2dcd4ea6f36813bf18429cc090678bca267e4c9f1909886295d5ee0c337205666f07ae5f2fab39aaa9cf1f4d457dcf41e2f02009d951a2b
6
+ metadata.gz: 0dcfab74f168f8953be2218760e86a9e63d028f3dc6503497f38746f1ebacb364ec7214042ca7e7ae1f4b0bc9d819efc925de3885e22a027d0468fc5b61a8695
7
+ data.tar.gz: 20f2b1fd5b94478555ab99e315bda70d2b8d7075dc488f7897c8a420b687a0670318990456eb1ce26e32449aee9bff164d92c55a2d636c2fd5c2f11e52f74cd8
data/lib/page.rb CHANGED
@@ -96,7 +96,8 @@ module Gridium
96
96
  end
97
97
 
98
98
  def all(by, locator)
99
- Driver.driver.find_elements(by, locator)
99
+ root = Element.new("root", :tag_name, "html")
100
+ root.find_elements(by, locator)
100
101
  end
101
102
 
102
103
  def find(by, locator)
@@ -104,7 +105,7 @@ module Gridium
104
105
  end
105
106
 
106
107
  def first(by, locator)
107
- Driver.driver.find_elements(by, locator).first
108
+ all(by, locator).first
108
109
  end
109
110
 
110
111
  def click_on(text)
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: 1.1.3
4
+ version: 1.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: 2017-03-23 00:00:00.000000000 Z
11
+ date: 2017-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler