sparkling_watir 0.0.9 → 0.1.0

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
  SHA256:
3
- metadata.gz: 745cf8cf8519ffaa825bf1f3cce1406947e01728984d1e16d25c91760cbf7252
4
- data.tar.gz: 1b0582fa83851aa78db87b418f784fae19f8b56ceb34fe667e8c3212890ad300
3
+ metadata.gz: 3380d869ffa3595391cc478a5d93bdb6236a767040550d964afd5e22da2aef9f
4
+ data.tar.gz: 2bb22863cad09f16c5b67d71350c5c582a2ebaa59783f1c6cb34e6643f9cc9e6
5
5
  SHA512:
6
- metadata.gz: 27a94eb8cdffcd2053207e161cb3ddf373a4d248b5bf9643cf63089a492136680714b8b02e7ae87ae17d52e2b867d5116b9b9ed3251a74160b324b728c496d6f
7
- data.tar.gz: 2f45fedf202e66d39f2bd9469dcf6c1040893fdc87171d8c8fbd15e82dee20b3742427f93e704002768ac0260c1aaf3460dea32b23bf6814b2b5d9716f27e646
6
+ metadata.gz: 617137f0d20e8d8b47b6b9fb156fb07ebb336cc221693fe83a29ca8161e48c689da354edc829ba284df1217252b5be33e4277c0272add29fc3a2108bc4bd5c87
7
+ data.tar.gz: 8b56fb08ebee6400ec7eeee70ac03c7f7797bdecc18fa1daff0b8f766018af25a13563589e999eac3f6a212fc2b15d249e93fb7685e36a56984967f7af5ec8c2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sparkling_watir (0.0.9)
4
+ sparkling_watir (0.1.0)
5
5
  appium_lib_core (~> 7.0.0)
6
6
  watir (~> 7.1.0)
7
7
 
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
- timeout = Time.now + 30
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?
@@ -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.9'
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'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sparkling_watir
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agustin Pequeno