lib/appium_lib/driver.rb in appium_lib-9.7.2 vs lib/appium_lib/driver.rb in appium_lib-9.7.3

- old
+ new

@@ -37,10 +37,11 @@ # from Core attr_reader :caps attr_reader :custom_url attr_reader :export_session + attr_reader :export_session_path attr_reader :default_wait attr_reader :appium_port attr_reader :appium_device attr_reader :automation_name attr_reader :listener @@ -127,10 +128,11 @@ appium_lib_opts = opts[:appium_lib] || {} @caps = @core.caps @custom_url = @core.custom_url @export_session = @core.export_session + @export_session_path = @core.export_session_path @default_wait = @core.default_wait @appium_port = @core.port @appium_wait_timeout = @core.wait_timeout @appium_wait_interval = @core.wait_interval @listener = @core.listener @@ -212,24 +214,25 @@ public # Returns a hash of the driver attributes def driver_attributes { - caps: @core.caps, - automation_name: @core.automation_name, - custom_url: @core.custom_url, - export_session: @core.export_session, - default_wait: @core.default_wait, - sauce_username: @sauce.username, - sauce_access_key: @sauce.access_key, - sauce_endpoint: @sauce.endpoint, - port: @core.port, - device: @core.device, - debug: @appium_debug, - listener: @listener, - wait_timeout: @core.wait_timeout, - wait_interval: @core.wait_interval + caps: @core.caps, + automation_name: @core.automation_name, + custom_url: @core.custom_url, + export_session: @core.export_session, + export_session_path: @core.export_session_path, + default_wait: @core.default_wait, + sauce_username: @sauce.username, + sauce_access_key: @sauce.access_key, + sauce_endpoint: @sauce.endpoint, + port: @core.port, + device: @core.device, + debug: @appium_debug, + listener: @listener, + wait_timeout: @core.wait_timeout, + wait_interval: @core.wait_interval } end def device_is_android? @core.device == :android @@ -429,10 +432,10 @@ # @option http_client_ops [Hash] :open_timeout Custom open timeout for http client. # @option http_client_ops [Hash] :read_timeout Custom read timeout for http client. # @return [Selenium::WebDriver] the new global driver def start_driver(http_client_ops = { http_client: ::Appium::Http::Default.new, open_timeout: 999_999, read_timeout: 999_999 }) - driver_quit + @core.quit_driver # If automationName is set only in server side, then the following automation_name should be nil before # starting driver. automation_name = @core.automation_name