Skip to content

Commit 2e71e47

Browse files
Don't wait in Pry
1 parent 3416272 commit 2e71e47

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/appium_lib/console.rb

+2-5
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,8 @@ def start_driver
146146
# when no commands are entered after 60 seconds.
147147
$driver.execute_script 'mobile: setCommandTimeout', timeout: 9999
148148

149-
# Must set implicit_wait to zero or $ commands will fail.
150-
# execute_script "$('button')"
151-
# $ commands fail anyway now so set implicit wait.
152-
# https://github.com/appium/appium/issues/214
153-
$driver.manage.timeouts.implicit_wait = 30
149+
# Set implicit wait by default unless we're using Pry.
150+
$driver.manage.timeouts.implicit_wait = 30 unless defined?(Pry)
154151

155152
$driver
156153
end

0 commit comments

Comments
 (0)