What is new in Sahi Pro Desktop Add-on v7.5.0
abstract
Sahi Pro Desktop Add-on v7.5.0 is a major release with significant feature additions and modifications. The following summarizes features and enhancements in Sahi Pro Desktop Add-on v7.5.0.
Key Modifications
warningRead this section, before upgrading to Sahi Pro v7.5.0
Desktop Automation without Browser Automation
If you want to automate only Desktop applications, and do not need Sahi Pro's browser automation capabilities, it is now
possible to turn off browser capabilities and use only a Desktop Add-on license (without needing a Sahi Pro license).
One needs to add licenses based on Sahi capabilities enabled.
New APIs
Windows Application- _importJava: Creates a new instance of the Java Class and sets it into a presumed variable name.
- _loadJavaInstance: Returns a instance of the Java Class.
- _drag: Simulates a drag action.
- _drop: Simulates a drop action.
- _dropDrop: Simulates a drag and drop action.
- _setAccessorIgnoreCase: To ignore case differences in identifiers of Accessors.
- _windowAction: Performs various window level actions.
- _getAttribute: Return the required attribute of the element.
- _window accessor api.
- _windowExists: Returns true if the window exists.
- _count: Counts number of element present.
- _collect: Returns elements of the specified type matching the identifier within relations.
- _getOptions: Returns values or texts of all options of the select element.
- _getWindows: Returns an array of window-property objects.
- _collectAttributes: Returns element attributes of all elements of the specified type matching the identifier within relations.
- _collectElementsInfo: Returns Accessor Info object of all elements of the specified type within relations.
- _leftOf: Specifies that the other element should be searched to the left of this element.
- _rightOf: Specifies that the other element should be searched to the right of this element.
- _leftOrRightOf: Specifies that the other element should be searched to the left or right of this element.
- _above: Specifies that the other element should be searched above this element.
- _under: Specifies that the other element should be searched under this element.
- _aboveOrUnder: Specifies that the other element should be searched above or below this element.
- _contains: Returns true if the specified child element is a child of the specified parent element, else false.
- _containsText: Returns true if element contains the text, else false.
- _closeWindow: Closes the selected window.
- _addToSuiteInfo: Appends the customFieldName and customFieldValue in Suite Info.
- _artifact: To save a file as part of the logs.
- _position: Returns the position of element.
- _logImage: Adds the image to logs.
- _logOutput: Allows concatenating multiple output messages during a script execution, and display the concatenated string in the script and suite reports.
- _focusWindow: For WINDOWS mode.
- _pause: Runs the script till that point and pauses execution.
- _encrypt: Returns encrypted password string.
- _setPassword: Types the password into the element.
- _areEqual: Compares two Javascript data type or arrays.
- Controller: List Properties: Lists all the properties of the element.
- _importJava: Creates a new instance of the Java Class and sets it into a presumed variable name.
- _loadJavaInstance: Returns a instance of the Java Class.
- JTree Automation api _expand: Expand tree element.
- JTree Automation api _collapse: Collapse tree element.
- _encrypt: Returns encrypted password string.
- _setPassword: Types the password into the element.
- _selectRange: Selects the text between the range specified.
- _selectTextRange: Selects the text.
- _getSelectionText: Returns Text selected by the user.
- _position: Returns positions of specific elements.
- _positionNative: Returns the absolute positions of elements.
- _clickNativeXY: Simulates a click event at the specified point.
- _count: Counts number of element present.
- _collect: Returns elements of the specified type matching the identifier within relations.
- _launchJavaApplication: To start java application(.jar files).
- _isEnabled: Returns true if element is enabled, else false.
- _dragNative: Simulates a drag event.
- _dropNative: Simulates a drop event.
- _pause: Runs the script till that point and pauses execution.
- _addToSuiteInfo: Appends the customFieldName and customFieldValue in Suite Info.
- _artifact: To save a file as part of the logs.
- _logImage: Adds the image to logs.
- _logOutput: Allows concatenating multiple output messages during a script execution, and display the concatenated string in the script and suite reports.
- _getOptions: Returns values or texts of all options of the select element.
- _dragDropNative: Simulates a drag and drop event.
- _areEqual: Compares two Javascript data type or arrays.
- _setAccessorIgnoreCase: To ignore case differences in identifiers of Accessors.
- Controller: List Properties: Lists all the properties of the element.
Modified APIs
Java/Applets Application- _getText or _getValue: supports index, name and regex.
- _setselected : added implementation for tree-item with regex, index and multi select
- _setValue: implemented for jTable.
- _type: was not taking integer values.
Bug Fixes
Windows Application- Fixed _setSelected for excel and outlook.
- Fixed recording and playback of _setSelected for WPF and Silverlight framework.
- Fixed _type appending new line.
- Fixed Multiple _setvalue recording for slider control.
- Fixed _typeCell and _setCell for new line insertion in excel sheet.
- Fixed _getSelectionText returning wrong value if no text selected.
- Fixed _setCell for formula.
- Fixed _selectTextRange for not throwing an error, if desired string is not found.
- Fixed Conflict between _list and list api.
- Fixed _setValue for data-item.
- Fixed _log with image.
- Fixed _compareImages.
- Fixed Identification of Silverlight elements on internet explorer.
- Fixed Script failure on excel window due to wrong window handle returned by Process API.
- Fixed Recording issue caused by variable name attribute of edit control.
- Fixed Identification for non browser element in IE.
- Fixed Click issue if left mouse button already pressed.
- Fixed Indexing issue with popup (window).
- Fixed Window focus issue.
- Fixed Wrong log message if window (popup) not found.
- Fixed Identification failure for some elements due to null reference of attribute.
- Fixed Click issue on menu-item.
- Fixed Window not found in case of multiple windows with same name using index.
- Fixed Extra image added in log if unit test failed in window, fixed.
- Fixed "\n" not setting in silver-light edit control.
- Fixed For Sahi Controller IE Select Drop down appearing only momentarily and disappears on click. Cause of the issue: This is IE's default behavior.
- Fixed _setSelected Multiple select list de-selects previous selected item.
- Fixed _clickNative.
- Fixed _near it was considering only siblings.
- Fixed _getValue for listView with index and for tableHeader.
- Fixed setServerVar script was failing if we use _pause api.
- Fixed _setvalue for \t.
- Fixed _log with image.
- Fixed _dragDropNative for table, if destination argument is only table then null pointer exception was coming
- Fixed _isVisible for treeItem.
- Fixed _compareImages.
- Fixed Assertions
- Fixed On identification _in was not coming when parent is set as anchor element. For parent also _near relation was set.
- Fixed Issue with JMenu click.
- Fixed Indexing for popup names.
- Fixed NullPointerException while clicking on JTable cell whose value is null.
- Fixed Identification issue fixed for text contain \t.
- Fixed Identification issue for cell span table.
- Fixed Identification of element if element name contains new line characters.
- Fixed setStrictVisiblity issue in applet when element is visible but not showing on screen.
- Fixed Java Application not coming in focus if script fail while taking screenshot (still if you minimize the application then it will not focus, but if application is on background then it will come into focus while taking screenshot).
warning
Refer Whats new in Sahi Pro v7.5.0 for features and enhancements done in Sahi Pro v7.5.0.