@@ -36,13 +36,12 @@ module Ios
3636 # This options affects only client side as <code>:appium_lib</code> key.<br>
3737 # Read {::Appium::Core::Driver} about each attribute
3838 class Options
39- attr_reader :custom_url , :default_wait ,
39+ attr_reader :custom_url ,
4040 :port , :wait_timeout , :wait_interval , :listener ,
4141 :direct_connect , :enable_idempotency_header
4242
4343 def initialize ( appium_lib_opts )
4444 @custom_url = appium_lib_opts . fetch :server_url , nil
45- @default_wait = appium_lib_opts . fetch :wait , nil
4645 @enable_idempotency_header = appium_lib_opts . fetch :enable_idempotency_header , true
4746
4847 @direct_connect = appium_lib_opts . fetch :direct_connect , true
@@ -133,11 +132,6 @@ class Driver
133132 # @return [String]
134133 attr_reader :custom_url
135134
136- # Default wait time for elements to appear in Appium server side.
137- # Provide <code>{ appium_lib: { wait: 30 } }</code> to {::Appium::Core.for}
138- # @return [Integer]
139- attr_reader :default_wait
140-
141135 # Appium's server port. 4723 is by default. Defaults to {::Appium::Core::Driver::DEFAULT_APPIUM_PORT}.<br>
142136 # Provide <code>{ appium_lib: { port: 8080 } }</code> to {::Appium::Core.for}.
143137 # <code>:custom_url</code> is prior than <code>:port</code> if <code>:custom_url</code> is set.
@@ -213,7 +207,6 @@ class Driver
213207 # },
214208 # appium_lib: {
215209 # port: 8080,
216- # wait: 0,
217210 # wait_timeout: 20,
218211 # wait_interval: 0.3,
219212 # listener: nil,
@@ -234,7 +227,6 @@ class Driver
234227 # },
235228 # appium_lib: {
236229 # server_url: 'http://custom-host:8080/wd/hub',
237- # wait: 0,
238230 # wait_timeout: 20,
239231 # wait_interval: 0.3,
240232 # listener: nil,
@@ -254,7 +246,6 @@ class Driver
254246 # app: '/path/to/MyiOS.app'
255247 # },
256248 # appium_lib: {
257- # wait: 0,
258249 # wait_timeout: 20,
259250 # wait_interval: 0.3,
260251 # listener: nil,
@@ -376,7 +367,6 @@ def setup_for_new_session(opts = {})
376367 # app: '/path/to/MyiOS.app'
377368 # },
378369 # appium_lib: {
379- # wait: 20,
380370 # wait_timeout: 20,
381371 # wait_interval: 0.3,
382372 # }
@@ -430,8 +420,6 @@ def start_driver(server_url: nil,
430420 @http_client . delete_additional_header Appium ::Core ::Base ::Http ::RequestHeaders ::KEYS [ :idempotency ]
431421 end
432422
433- set_implicit_wait_by_default ( @default_wait )
434-
435423 @driver
436424 end
437425
@@ -478,18 +466,6 @@ def get_http_client(http_client: nil, open_timeout: nil, read_timeout: nil)
478466 http_client || Appium ::Core ::Base ::Http ::Default . new ( open_timeout : open_timeout , read_timeout : read_timeout )
479467 end
480468
481- # Ignore setting default wait if the target driver has no implementation
482- def set_implicit_wait_by_default ( wait )
483- return if @default_wait . nil?
484-
485- @driver . manage . timeouts . implicit_wait = wait
486- rescue ::Selenium ::WebDriver ::Error ::UnknownError => e
487- raise ::Appium ::Core ::Error ::ServerError , e . message unless e . message . include? ( 'The operation requested is not yet implemented' )
488-
489- ::Appium ::Logger . debug ( e . message )
490- { }
491- end
492-
493469 # Returns the server's version info. This method calls +driver.remote_status+ internally
494470 #
495471 # @return [Hash]
@@ -652,8 +628,6 @@ def set_appium_lib_specific_values(appium_lib_opts)
652628 @custom_url ||= opts . custom_url # Keep existence capability if it's already provided
653629 @enable_idempotency_header = opts . enable_idempotency_header
654630
655- @default_wait = opts . default_wait
656-
657631 @port = opts . port
658632
659633 @wait_timeout = opts . wait_timeout
0 commit comments