What is new in Sahi Pro Mobile Add-on v8.0.0
Sahi Pro Mobile Add-on v8.0.0 is a major release with significant feature additions and modifications. The following summarizes features and enhancements in Sahi Pro Mobile Add-on v8.0.0
Refer to Sahi Pro Mobile Add-on page for details.
Key Features
Section titled “Key Features”-
Controller
Section titled “Controller”Sahi Controller: Fixed element identification with respect to the relational apis.Java Controller: Fixed recording and element identification with respect to the relational apis.
Android/iOS Viewer
Section titled “Android/iOS Viewer”Optimize Viewercheckbox has been removed from the iOS Viewer. By default, the viewer is optimized.- Added Webview support in Android.
Configuration
Section titled “Configuration”- Added ios_devices.xml and android_devices.xml at
<SahiPath>/userdata/config. Device list will be fetched from the respective xml file. - Added property
ios.keyboard.buttons.autoclick, in which user can specify the name of the keyboard button which is used to hide the keyboard. Separate multiple names with semi-colon.
Plyaback
Section titled “Plyaback”- Implemented distributed playback for Mobile Add-on.
- Fixed Android/iOS Java Driver playback from scenario file.
New APIs
Section titled “New APIs”Android Application
Section titled “Android Application”-
Action APIs
Screenshot APIs
- _takePageScreenShot: Take a full screenshot of a application element or the device.
- _assertSnapShot: Takes the full screen shot of the screen or the element if specified, and compares with the reference image.
Android WebView APIs
- _aStartWebContext: Change the execution mode to ANDROID_WEBVIEW and start the execution of the following steps as Web.
- _aStopWebContext: Stop execution in Android WebView.
Other APIs
- _deviceInfo: Returns device information as an associative array.
iOS Application
Section titled “iOS Application”-
Action APIs
Fetch APIs
- _isChecked: Returns the current status of checkbox or radio button.
Screenshot APIs
- _takePageScreenShot: Take a full screenshot of a application element or the device.
- _assertSnapShot: Takes the full screen shot of the screen or the element if specified, and compares with the reference image.
Other APIs
- _deviceInfo: Returns device information as an associative array.
- _iSetAutoDismissKeyboard: Dismiss the keyboard automatically after setting value.
Modified APIs
Section titled “Modified APIs”-
Android Application
Section titled “Android Application”- _takeScreenShots: Added
$noLogs(it will not log the images in Sahi logs) parameter. - _launchNewMobileBrowser: DeviceId (required) as first parameter and URL as second parameter.
iOS Application
Section titled “iOS Application”- _takeScreenShots: Added
$noLogs(it will not log the images in Sahi logs) parameter. - _setValue: Implemented
$propsarguments, which is used to dismiss the keyboard as well as clear the text.
- _takeScreenShots: Added
Bug Fixes
Section titled “Bug Fixes”-
- _setValue for Android versions below Lollipop.

