Module: Appium::Ios::Xcuitest::GetContext

Defined in:
lib/appium_lib/ios/xcuitest/command/get_context.rb

Overview

Get the contexts available, with information about the url and title of each webview

Instance Method Summary collapse

Instance Method Details

#xcuitest_get_contextsObject

Get contexts

Examples:


xcuitest_get_contexts #=> [{ 'id' => 'NATIVE_APP' },
                  # { 'id' => 'WEBVIEW_41467.1', 'title' => 'Apple', 'url' => 'https://www.apple.com/' }]


28
29
30
# File 'lib/appium_lib/ios/xcuitest/command/get_context.rb', line 28

def xcuitest_get_contexts
  @driver.execute_script 'mobile: getContexts', {}
end