robotok 0.0.6 → 0.0.7
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 +2 -2
- data/lib/robotok/version.rb +1 -1
- metadata +1 -1
data/bin/robotok
CHANGED
|
@@ -145,6 +145,8 @@ def actions(args)
|
|
|
145
145
|
$config[:args] = args
|
|
146
146
|
|
|
147
147
|
cfg[:actions].each do |action,opts|
|
|
148
|
+
stop() if not opts[:quit].nil?
|
|
149
|
+
$driver.navigate.to opts[:url] if not opts[:url].nil?
|
|
148
150
|
|
|
149
151
|
if not $config[:args].nil? and not $config[:args].empty? then
|
|
150
152
|
if not $config[:args].include?(action.to_s) then
|
|
@@ -152,8 +154,6 @@ def actions(args)
|
|
|
152
154
|
next
|
|
153
155
|
end
|
|
154
156
|
end
|
|
155
|
-
stop() if not opts[:quit].nil?
|
|
156
|
-
$driver.navigate.to opts[:url] if not opts[:url].nil?
|
|
157
157
|
|
|
158
158
|
if not opts[:timeout].nil? then
|
|
159
159
|
wait = Selenium::WebDriver::Wait.new(:timeout => opts[:timeout][:sec]) # seconds
|
data/lib/robotok/version.rb
CHANGED