File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 65
65
# combine secure & textfield on iOS to match Android behavior.
66
66
$os == :ios ? require ( 'ios/textfield' ) :
67
67
require ( 'android/textfield' )
68
+
69
+ # implicit_wait default_wait
70
+ $default_wait = 30
68
71
69
72
# WebDriver capabilities. Must be valid for Sauce to work.
70
73
# https://github.com/jlipps/appium/blob/master/app/android.js
@@ -147,7 +150,7 @@ def start_driver
147
150
$driver. execute_script 'mobile: setCommandTimeout' , timeout : 9999
148
151
149
152
# Set implicit wait by default unless we're using Pry.
150
- $driver. manage . timeouts . implicit_wait = 30 unless defined? ( Pry )
153
+ $driver. manage . timeouts . implicit_wait = $default_wait unless defined? ( Pry )
151
154
152
155
$driver
153
156
end
@@ -160,7 +163,7 @@ def no_wait
160
163
# Set implicit wait to timeout, defaults to 30.
161
164
# @param timeout [Integer] the timeout in seconds
162
165
# @return [void]
163
- def set_wait timeout = 30
166
+ def set_wait timeout = $default_wait
164
167
$driver. manage . timeouts . implicit_wait = timeout
165
168
end
166
169
You can’t perform that action at this time.
0 commit comments