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 +4 -4
- data/lib/webdrone/mark.rb +4 -3
- data/lib/webdrone/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1506b267f0d46271aafa0b5c4218a1d651203f10
|
4
|
+
data.tar.gz: 6e6794b034320bd053f7c0d31c74aa464cf6c422
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/webdrone/version.rb
CHANGED