Silk Test Classic provides full browser support for testing debug hybrid apps that consist of a single web view, which is embedded in a native container. A common example of such a hybrid app would be an Apache Cordova application.
Agent.SetOption(OPT_ENABLE_MOBILE_WEBVIEW_FALLBACK_SUPPORT, false) Desktop.Find("//BrowserApplication//BrowserWindow//INPUT[@id='email']").Click()With the fallback support enabled, the following code clicks on the same link:
Agent.SetOption(OPT_ENABLE_MOBILE_WEBVIEW_FALLBACK_SUPPORT, true) Desktop.Find("//BrowserApplication//BrowserWindow//MobileTextField[@resource-id='email']").Click()
The process for testing a hybrid app on iOS is the same as the process for testing a mobile native application. For additional information, see Testing Native Mobile Applications on a Physical iOS Device or Testing Native Mobile Applications on an iOS Simulator.
Before testing a hybrid app on an iOS device, ensure that the Web Inspector is activated on the device. For additional information, see Preparing an iOS Device for Testing.