Class: Appium::Core::Options
- Inherits:
-
Object
- Object
- Appium::Core::Options
- Defined in:
- lib/appium_lib_core/driver.rb
Overview
This options affects only client side as :appium_lib
key.
Read Driver about each attribute
Instance Attribute Summary collapse
-
#custom_url ⇒ Object
readonly
Returns the value of attribute custom_url.
-
#default_wait ⇒ Object
readonly
Returns the value of attribute default_wait.
-
#direct_connect ⇒ Object
readonly
Returns the value of attribute direct_connect.
-
#enable_idempotency_header ⇒ Object
readonly
Returns the value of attribute enable_idempotency_header.
-
#export_session ⇒ Object
readonly
Returns the value of attribute export_session.
-
#export_session_path ⇒ Object
readonly
Returns the value of attribute export_session_path.
-
#listener ⇒ Object
readonly
Returns the value of attribute listener.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#wait_interval ⇒ Object
readonly
Returns the value of attribute wait_interval.
-
#wait_timeout ⇒ Object
readonly
Returns the value of attribute wait_timeout.
Instance Method Summary collapse
-
#initialize(appium_lib_opts) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(appium_lib_opts) ⇒ Options
Returns a new instance of Options.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/appium_lib_core/driver.rb', line 39 def initialize(appium_lib_opts) @custom_url = appium_lib_opts.fetch :server_url, nil @default_wait = appium_lib_opts.fetch :wait, Driver::DEFAULT_IMPLICIT_WAIT @enable_idempotency_header = appium_lib_opts.fetch :enable_idempotency_header, true # bump current session id into a particular file @export_session = appium_lib_opts.fetch :export_session, false @export_session_path = appium_lib_opts.fetch :export_session_path, default_tmp_appium_lib_session @direct_connect = appium_lib_opts.fetch :direct_connect, false @port = appium_lib_opts.fetch :port, Driver::DEFAULT_APPIUM_PORT # timeout and interval used in ::Appium::Comm.wait/wait_true @wait_timeout = appium_lib_opts.fetch :wait_timeout, ::Appium::Core::Wait::DEFAULT_TIMEOUT @wait_interval = appium_lib_opts.fetch :wait_interval, ::Appium::Core::Wait::DEFAULT_INTERVAL # to pass it in Selenium.new. # 'listener = opts.delete(:listener)' is called in Selenium::Driver.new @listener = appium_lib_opts.fetch :listener, nil end |
Instance Attribute Details
#custom_url ⇒ Object (readonly)
Returns the value of attribute custom_url.
35 36 37 |
# File 'lib/appium_lib_core/driver.rb', line 35 def custom_url @custom_url end |
#default_wait ⇒ Object (readonly)
Returns the value of attribute default_wait.
35 36 37 |
# File 'lib/appium_lib_core/driver.rb', line 35 def default_wait @default_wait end |
#direct_connect ⇒ Object (readonly)
Returns the value of attribute direct_connect.
35 36 37 |
# File 'lib/appium_lib_core/driver.rb', line 35 def direct_connect @direct_connect end |
#enable_idempotency_header ⇒ Object (readonly)
Returns the value of attribute enable_idempotency_header.
35 36 37 |
# File 'lib/appium_lib_core/driver.rb', line 35 def enable_idempotency_header @enable_idempotency_header end |
#export_session ⇒ Object (readonly)
Returns the value of attribute export_session.
35 36 37 |
# File 'lib/appium_lib_core/driver.rb', line 35 def export_session @export_session end |
#export_session_path ⇒ Object (readonly)
Returns the value of attribute export_session_path.
35 36 37 |
# File 'lib/appium_lib_core/driver.rb', line 35 def export_session_path @export_session_path end |
#listener ⇒ Object (readonly)
Returns the value of attribute listener.
35 36 37 |
# File 'lib/appium_lib_core/driver.rb', line 35 def listener @listener end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
35 36 37 |
# File 'lib/appium_lib_core/driver.rb', line 35 def port @port end |
#wait_interval ⇒ Object (readonly)
Returns the value of attribute wait_interval.
35 36 37 |
# File 'lib/appium_lib_core/driver.rb', line 35 def wait_interval @wait_interval end |
#wait_timeout ⇒ Object (readonly)
Returns the value of attribute wait_timeout.
35 36 37 |
# File 'lib/appium_lib_core/driver.rb', line 35 def wait_timeout @wait_timeout end |