We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5f82c0 commit 2278c8eCopy full SHA for 2278c8e
lib/appium_lib/console.rb
@@ -72,9 +72,6 @@
72
require 'android/generic'
73
end
74
75
-# implicit_wait default_wait
76
-$default_wait = 30
77
-
78
# WebDriver capabilities. Must be valid for Sauce to work.
79
# https://github.com/jlipps/appium/blob/master/app/android.js
80
def android_capabilities
@@ -140,10 +137,12 @@ def driver_quit
140
137
141
138
# Creates a new global driver and quits the old one if it exists.
142
139
# @return [Selenium::WebDriver] the new global driver
143
-def start_driver
+def start_driver wait=30
144
@client = @client || Selenium::WebDriver::Remote::Http::Default.new
145
@client.timeout = 999999
146
+ $default_wait = wait
+
147
# If the driver already exists, quit before creating a new driver.
148
driver_quit
149
0 commit comments