robotok 0.0.8 → 0.0.9

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.
Files changed (3) hide show
  1. data/bin/robotok +4 -3
  2. data/lib/robotok/version.rb +1 -1
  3. metadata +1 -1
data/bin/robotok CHANGED
@@ -94,7 +94,7 @@ end
94
94
  def data(o)
95
95
  o[:data].each do |k,v|
96
96
  puts "data: #{k.to_s}"
97
- stop() if k.to_s == "quit"
97
+ stop(0) if k.to_s == "quit"
98
98
 
99
99
  elem = $driver.find_element(:xpath, v[:xpath])
100
100
 
@@ -144,8 +144,6 @@ def actions(args)
144
144
  $config[:args] = args
145
145
 
146
146
  cfg[:actions].each do |action,opts|
147
- stop() if not opts[:quit].nil?
148
- $driver.navigate.to opts[:url] if not opts[:url].nil?
149
147
 
150
148
  if not $config[:args].nil? and not $config[:args].empty? then
151
149
  if not $config[:args].include?(action.to_s) then
@@ -154,6 +152,9 @@ def actions(args)
154
152
  end
155
153
  end
156
154
 
155
+ stop() if not opts[:quit].nil?
156
+ $driver.navigate.to opts[:url] if not opts[:url].nil?
157
+
157
158
  if not opts[:timeout].nil? then
158
159
  wait = Selenium::WebDriver::Wait.new(:timeout => opts[:timeout][:sec]) # seconds
159
160
  begin
@@ -1,3 +1,3 @@
1
1
  module Robotok
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robotok
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: