wist 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/wist.rb +5 -0
- data/test/tests/wist_test.rb +3 -0
- data/wist.gemspec +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: b6150ba5406034ca7dede15c09f857706842af71
|
4
|
+
data.tar.gz: e56f65705c2f4b1b02c794fcc1b9430e145c70aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7044443c1ce69637a1e89669076fc480251bcca91d781ac6d853b7dfdebb93389eacc89407d5070f43e3f57aa8d6c1a8015e9dbe747b6363ba06428a33b5c3e2
|
7
|
+
data.tar.gz: ced3cb4464579bc5a8be74f527a6f42e904fb29cb32ac3a20b09e817a156b2c1dfd9100dd586862e2c494600a483aee8246d96d6b8508297a32db5c893b14aaf
|
data/.gitignore
CHANGED
@@ -1 +1 @@
|
|
1
|
-
build
|
1
|
+
build/
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/wist.rb
CHANGED
@@ -16,6 +16,9 @@ module Wist
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def wait_until(timeout: Capybara.default_wait_time)
|
19
|
+
old_timeout = Capybara.default_wait_time
|
20
|
+
Capybara.default_wait_time = 0
|
21
|
+
|
19
22
|
Selenium::WebDriver::Wait.new(timeout: timeout).until do
|
20
23
|
begin
|
21
24
|
yield
|
@@ -23,6 +26,8 @@ module Wist
|
|
23
26
|
false
|
24
27
|
end
|
25
28
|
end
|
29
|
+
|
30
|
+
Capybara.default_wait_time = old_timeout
|
26
31
|
end
|
27
32
|
|
28
33
|
def click(selector)
|
data/test/tests/wist_test.rb
CHANGED
data/wist.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lihan Li
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|