bets 0.0.11 → 0.0.12
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/lib/bets/version.rb +1 -1
- data/lib/bets.rb +3 -3
- metadata +1 -1
data/lib/bets/version.rb
CHANGED
data/lib/bets.rb
CHANGED
|
@@ -118,17 +118,17 @@ module Bets
|
|
|
118
118
|
puts "Ошибка открытия страницы #{str}: #{error}"
|
|
119
119
|
end
|
|
120
120
|
def ff_click(browser, str)
|
|
121
|
-
instance_eval "
|
|
121
|
+
instance_eval "sleep 4;@browsers[:#{browser}].#{str}.click"
|
|
122
122
|
rescue Exception => error
|
|
123
123
|
puts "Ошибка нажаимя #{str}: #{error}"
|
|
124
124
|
end
|
|
125
125
|
def ff_set(browser, str, value)
|
|
126
|
-
instance_eval "
|
|
126
|
+
instance_eval "sleep 4;@browsers[:#{browser}].#{str}.set('#{value}')"
|
|
127
127
|
rescue Exception => error
|
|
128
128
|
puts "Ошибка установки значения в поле #{str}: #{error}"
|
|
129
129
|
end
|
|
130
130
|
def ff_get(browser, str, name)
|
|
131
|
-
instance_eval "
|
|
131
|
+
instance_eval "sleep 4;@browsers[:#{browser}].#{str}.#{name}"
|
|
132
132
|
rescue Exception => error
|
|
133
133
|
puts "Ошибка считывания значения из поля #{str}: #{error}"
|
|
134
134
|
end
|