webdrone 1.1.2 → 1.1.4

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: cf0a958d6a4ff988d66bf35511fef216fc36cd75
4
- data.tar.gz: 2fdab328f98db48f4d657cb24b33f300a770b00d
3
+ metadata.gz: 1506b267f0d46271aafa0b5c4218a1d651203f10
4
+ data.tar.gz: 6e6794b034320bd053f7c0d31c74aa464cf6c422
5
5
  SHA512:
6
- metadata.gz: 2eb9adff368e3b0160b85226a69dd7d2cd070b88c9b9cda93d59e07af7f2cbc04d09baaa9544fdf202564cfae5b880f0cc6a0b4a6b11cf0902df4192955acfed
7
- data.tar.gz: d29798edd63ebb584684eadfab09952e68f2c64dbaad0bf73501bd2c317665125103d22cde6c0a1072b6071c4d3e5918c657d28820d6258923d610f7721a3117
6
+ metadata.gz: 94c4dd59b648740990234972dbb013d75f834d5874947c47fcdaecda533e6aaacdea907bff574ae19ceb1e4182e3474f5b3999252d35b5887a6a0cedf93911da
7
+ data.tar.gz: 42e0c9e761b468734e8b1430d7a7fae52a1529465a1ec4e2c631a34f2268b261a5b46f7a71bf6c06fe91f0a6d6674ffe0745905b224fb4f3b0c3a8752e21ec84
data/lib/webdrone/mark.rb CHANGED
@@ -12,9 +12,9 @@ module Webdrone
12
12
  @a0 = a0
13
13
  end
14
14
 
15
- def mark(text, n: 1, all: false, visible: true, color: '#af1616', times: 3, sleep: 0.05)
15
+ def mark(text, n: 1, all: false, visible: true, color: '#af1616', times: 3, sleep: 0.05, shot: nil)
16
16
  item = @a0.find.send __callee__, text, n: n, all: all, visible: visible
17
- mark_item item, color: color, times: times, sleep: sleep
17
+ mark_item item, color: color, times: times, sleep: sleep, shot: shot, text: text
18
18
  rescue => exception
19
19
  Webdrone.report_error(@a0, exception)
20
20
  end
@@ -27,7 +27,7 @@ module Webdrone
27
27
  alias_method :option, :mark
28
28
  alias_method :xpath, :mark
29
29
 
30
- def mark_item(item, color: '#af1616', times: 3, sleep: 0.05)
30
+ def mark_item(item, color: '#af1616', times: 3, sleep: 0.05, shot: nil, text: nil)
31
31
  times.times do
32
32
  mark_item_border item, 'white'
33
33
  sleep sleep
@@ -36,6 +36,7 @@ module Webdrone
36
36
  mark_item_border item, color
37
37
  sleep sleep
38
38
  end
39
+ @a0.shot.screen shot.is_a?(String) ? shot : text if shot
39
40
  item
40
41
  end
41
42
 
@@ -1,3 +1,3 @@
1
1
  module Webdrone
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webdrone
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aldrin Martoq