module Appium::Ios::Xcuitest::GetContext
Get the contexts available, with information about the url and title of each webview
Public Instance Methods
xcuitest_get_contexts()
click to toggle source
Get contexts
@example
xcuitest_get_contexts #=> [{ 'id' => 'NATIVE_APP' }, # { 'id' => 'WEBVIEW_41467.1', 'title' => 'Apple', 'url' => 'https://www.apple.com/' }]
# File lib/appium_lib/ios/xcuitest/command/get_context.rb, line 28 def xcuitest_get_contexts @driver.execute_script 'mobile: getContexts', {} end