robotok 0.0.4 → 0.0.5
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.
- data/bin/robotok +3 -1
- data/lib/robotok/version.rb +1 -1
- metadata +1 -1
data/bin/robotok
CHANGED
@@ -69,6 +69,7 @@ end
|
|
69
69
|
on_error do |exception|
|
70
70
|
# Error logic here
|
71
71
|
# return false to skip default error handling
|
72
|
+
stop()
|
72
73
|
true
|
73
74
|
end
|
74
75
|
|
@@ -93,7 +94,7 @@ end
|
|
93
94
|
|
94
95
|
def data(o)
|
95
96
|
o[:data].each do |k,v|
|
96
|
-
puts "data
|
97
|
+
puts "data: #{k.to_s}"
|
97
98
|
stop() if k.to_s == "quit"
|
98
99
|
|
99
100
|
elem = $driver.find_element(:xpath, v[:xpath])
|
@@ -162,6 +163,7 @@ def actions(args)
|
|
162
163
|
puts "[#{action}] Action timeout for #{opts[:timeout][:xpath]}"
|
163
164
|
stop()
|
164
165
|
end
|
166
|
+
puts "action: #{action}"
|
165
167
|
data(opts) if not opts[:data].nil?
|
166
168
|
end
|
167
169
|
|
data/lib/robotok/version.rb
CHANGED