Sha256: 082f89a62ff15a25ca6ac4f0251273eddb67cc13a2875acccee4c971389b4599

Contents?: true

Size: 633 Bytes

Versions: 12

Compression:

Stored size: 633 Bytes

Contents

module Appium
  module Ios
    module Xcuitest
      # Get the contexts available, with information about the url and title of each webview
      module GetContext
        #
        # Get contexts
        #
        # @example
        #
        #     xcuitest_get_contexts #=> [{ 'id' => 'NATIVE_APP' },
        #                       # { 'id' => 'WEBVIEW_41467.1', 'title' => 'Apple', 'url' => 'https://www.apple.com/' }]
        #
        def xcuitest_get_contexts
          @driver.execute_script 'mobile: getContexts', {}
        end
      end # module GetContext
    end # module Xcuitest
  end # module Ios
end # module Appium

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
appium_lib-10.2.0 lib/appium_lib/ios/xcuitest/command/get_context.rb
appium_lib-10.1.0 lib/appium_lib/ios/xcuitest/command/get_context.rb
appium_lib-10.0.0 lib/appium_lib/ios/xcuitest/command/get_context.rb
appium_lib-9.18.0 lib/appium_lib/ios/xcuitest/command/get_context.rb
appium_lib-9.17.0 lib/appium_lib/ios/xcuitest/command/get_context.rb
appium_lib-9.16.1 lib/appium_lib/ios/xcuitest/command/get_context.rb
appium_lib-9.16.0 lib/appium_lib/ios/xcuitest/command/get_context.rb
appium_lib-9.15.2 lib/appium_lib/ios/xcuitest/command/get_context.rb
appium_lib-9.15.1 lib/appium_lib/ios/xcuitest/command/get_context.rb
appium_lib-9.15.0 lib/appium_lib/ios/xcuitest/command/get_context.rb
appium_lib-9.14.3 lib/appium_lib/ios/xcuitest/command/get_context.rb
appium_lib-9.14.2 lib/appium_lib/ios/xcuitest/command/get_context.rb