selenium_fury 1.0.6 → 1.0.7

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: 47a865edac170557b0e09a6f14cee59f9ed30f40
4
- data.tar.gz: 01218e3f50951dacf34a6ee6111cc7f0b64156c4
3
+ metadata.gz: 5947a3a1ef97307a23c513b6b4429e3b90baf159
4
+ data.tar.gz: e4976ee8839e78fd579fe9382e9f556dc9c7251a
5
5
  SHA512:
6
- metadata.gz: f3b275947b365318bb8a18a05e5a64908b27f1d3607deb2116adb5a6e871e5faee366092c20ed8308b2f0b14cedf586e4ac6c7779f80d044b3848295ab5f0ec4
7
- data.tar.gz: 1a45d7087df95c4595c14929f7ee3b08d8ad64eaec61b0a10438195e407729c4a3d2d3051858613bc6bf825f5304ac36be094de6572f3f7423f93b12e9514318
6
+ metadata.gz: 154b5247f2a016fa7011c35a6c5c52bad97caf5edd9f7bc2593e080a6531fa19e544a6498afeee74a7afada4b2fd0d201b2f4382451524cbc6c00862f672085e
7
+ data.tar.gz: 0f479c83677c8a62383a28150b6a2ac28a188217287e5e31361668bcd5865f9796fe32f68b6779c82ae1cb641aea5eb5e52b339a6d8196d0c5e1ad12b4a2d9c4
@@ -1,7 +1,6 @@
1
1
  module GenericElementHelpers
2
2
  def el
3
- raise "Locator at #{location} is not present" unless present?
4
- @driver.find_element(location)
3
+ @driver.find_element location
5
4
  end
6
5
 
7
6
  def list
@@ -78,6 +77,7 @@ module ElementWaitHelpers
78
77
 
79
78
  # Raises error if not present
80
79
  def wait_visible!(timeout=@wait)
80
+ self.el
81
81
  wait_for(timeout: timeout, message: "Element at #{location} is not visible") { visible? }
82
82
  end
83
83
 
@@ -87,6 +87,7 @@ module ElementWaitHelpers
87
87
 
88
88
  # Raises error if not present
89
89
  def wait_not_visible!(timeout=@wait)
90
+ self.el
90
91
  wait_for(timeout: timeout, message: "Element at #{location} is still visible") { !visible? }
91
92
  end
92
93
  end
@@ -1,3 +1,3 @@
1
1
  module SeleniumFury
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
@@ -316,7 +316,7 @@ describe PageObject do
316
316
  it 'should error on missing element if specify !' do
317
317
  start_time = Time.now
318
318
  expect { test_page.not_a_element.wait_visible! }.
319
- to raise_exception(RuntimeError, "Locator at #{test_page.not_a_element.location.to_s} is not present")
319
+ to raise_exception(Selenium::WebDriver::Error::NoSuchElementError)
320
320
  (Time.now-start_time).should < 1
321
321
  end
322
322
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium_fury
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Sims
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-30 00:00:00.000000000 Z
11
+ date: 2013-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver