sparkling_watir 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -2
- data/lib/sparkling_watir/gestures.rb +2 -1
- data/sparkling_watir.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3380d869ffa3595391cc478a5d93bdb6236a767040550d964afd5e22da2aef9f
|
|
4
|
+
data.tar.gz: 2bb22863cad09f16c5b67d71350c5c582a2ebaa59783f1c6cb34e6643f9cc9e6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 617137f0d20e8d8b47b6b9fb156fb07ebb336cc221693fe83a29ca8161e48c689da354edc829ba284df1217252b5be33e4277c0272add29fc3a2108bc4bd5c87
|
|
7
|
+
data.tar.gz: 8b56fb08ebee6400ec7eeee70ac03c7f7797bdecc18fa1daff0b8f766018af25a13563589e999eac3f6a212fc2b15d249e93fb7685e36a56984967f7af5ec8c2
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -72,9 +72,11 @@ app.long_press on: button
|
|
|
72
72
|
app.swipe to: button, direction: :up
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
**Scroll:** Scrolls until it finds an element, you need to pass a scrollable view to scroll into, there are 4 direction available: :up, :down, :left, :right
|
|
75
|
+
**Scroll:** Scrolls until it finds an element, you need to pass a scrollable view to scroll into, there are 4 direction available: :up, :down, :left, :right.
|
|
76
|
+
The default duration is 30 seconds.
|
|
77
|
+
|
|
76
78
|
```ruby
|
|
77
|
-
app.scroll into: scrollable_view, for: element, direction: :down
|
|
79
|
+
app.scroll into: scrollable_view, for: element, direction: :down, duration: 40
|
|
78
80
|
```
|
|
79
81
|
|
|
80
82
|
|
|
@@ -52,7 +52,8 @@ module SparklingWatir
|
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
def scroll(opts = {})
|
|
55
|
-
|
|
55
|
+
duration = opts[:duration] || 30
|
|
56
|
+
timeout = Time.now + duration
|
|
56
57
|
while Time.now < timeout
|
|
57
58
|
swipe to: opts[:into], direction: opts[:direction], scrollable: true
|
|
58
59
|
break if opts[:for].present?
|
data/sparkling_watir.gemspec
CHANGED
|
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = 'sparkling_watir'
|
|
8
|
-
spec.version = '0.0
|
|
8
|
+
spec.version = '0.1.0'
|
|
9
9
|
spec.authors = ['Agustin Pequeno']
|
|
10
10
|
spec.email = ['agustin.pe94@gmail.com']
|
|
11
11
|
spec.homepage = 'https://github.com/aguspe/sparkling_watir'
|