File tree 1 file changed +2
-18
lines changed
1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,7 @@ module Appium::Common
30
30
# @param interval [Float] the time in seconds to wait after calling the block
31
31
# @param block [Block] the block to call
32
32
# @return [Object] the result of block.call
33
- def wait max_wait = -1 , interval = 0.5 , &block
34
- if max_wait == -1
35
- max_wait = begin
36
- $driver. default_wait
37
- rescue
38
- end
39
- max_wait ||= 30
40
- end
41
-
33
+ def wait max_wait = 30 , interval = 0.5 , &block
42
34
max_wait = 1 if max_wait <= 0
43
35
result = nil
44
36
timeout max_wait do
@@ -60,15 +52,7 @@ def ignore &block
60
52
# @param interval [Float] the time in seconds to wait after calling the block
61
53
# @param block [Block] the block to call
62
54
# @return [Object] the result of block.call
63
- def wait_true max_wait = -1 , interval = 0.5 , &block
64
- if max_wait == -1
65
- max_wait = begin
66
- $driver. default_wait
67
- rescue
68
- end
69
- max_wait ||= 30
70
- end
71
-
55
+ def wait_true max_wait = 30 , interval = 0.5 , &block
72
56
max_wait = 1 if max_wait <= 0
73
57
result = nil
74
58
timeout max_wait do
You can’t perform that action at this time.
0 commit comments