Sahi Documentation

What is new in Sahi Pro Desktop Add-on v8.0.0

abstract Sahi Pro Desktop Add-on v8.0.0 is a major release with significant feature additions and modifications. The following summarizes features and enhancements in Sahi Pro Desktop Add-on v8.0.0.

Key Features

warningRead this section, before upgrading to Sahi Pro v8.0.0

Controller

New APIs

Windows Application

    Action APIs
    • _keyPress: Simulates pressing a key on the given element. Do keyDown and keyUp together.
    • _keyUp: Simulates releasing a key press on the given element.
    • _keyDown: Simulates pressing down a key on the given element.
    Assertion APIs Alignment APIs
    • _areHorizontallyAligned: Checks whether two elements are horizontally aligned or not.
    • _areVerticallyAligned: Checks whether two elements are vertically aligned or not.
    • _isCentered: Checks whether the inner element is vertically or horizontally centered to the container element.
    • _isVisiblyInside: Checks whether an element is visibly inside another element.
    • _isVisiblyOutside: Checks whether an element is visibly outside another element.
    • _isVisiblyOn: Checks whether an element is placed on another element.
    • _fitsWidth: Checks whether an element fits within the width of another element.
    • _fitsHeight: Checks whether an element fits within the height of another element.
    Accessor APIs
    • _wEdit: Window specific accessor API.
    • _wCombobox: Window specific accessor API.
    • _wHyperlink: Window specific accessor API.
    • _wRadiobutton: Window specific accessor API.
    • Accessor API's: Identifier: Support for the associative array to access elements.
    Relational APIs
    • _parentNode: Returns parent element of the specified element.
    • _startLookInside: Specifies that the element should be searched within another element.
    • _stopLookInside: Re-sets the _startLookInside relation marker.
    Screenshot APIs
    • _takePageScreenShot: Take a full screenshot of an element or the window application.
    • _assertSnapShot: Take a screenshot of specified element and compare with reference image.

Java/Applets Application

    Action APIs Assertion APIs Alignment APIs
    • _areHorizontallyAligned: Checks whether two elements are horizontally aligned or not.
    • _areVerticallyAligned: Checks whether two elements are vertically aligned or not.
    • _isCentered: Checks whether the inner element is vertically or horizontally centered to the container element.
    • _isVisiblyInside: Checks whether an element is visibly inside another element.
    • _isVisiblyOutside: Checks whether an element is visibly outside another element.
    • _isVisiblyOn: Checks whether an element is placed on another element.
    • _fitsWidth: Checks whether an element fits within the width of another element.
    • _fitsHeight: Checks whether an element fits within the height of another element.
    Accessor APIs
    • Accessor API's: Identifier: Support for the associative array to access elements.
    Relational APIs
    • _parentNode: Returns parent element of the specified element.
    Fetch APIs
    • _getIconPath: Returns path of the graphic image that the element displays.
    • _getAttribute: Return the attribute value of the element.
    • _collectAttributes: Returns attribute value of all elements of the specified type matching the identifier.
    • _collectElementsInfo: Returns Accessor Info object of all elements of the specified type
    • _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.
    • _getTableContents: Returns the data from the table, in two dimensional array.
    • _getCellIndex: Returns an array with first value as row index and second value as column index of the table.
    Screenshot APIs
    • _takePageScreenShot: Take a full screenshot of a element or the window application.
    • _assertSnapShot: Take a screenshot of specified element and compare with reference image.
    Window APIs
    • _getWindows: Returns an array of window-property objects.

Modified APIs

Windows Application

Java/Applets Application

    • _takeScreenShots: Added $noLogs (it will not log the images in Sahi logs) parameter.

Bug Fixes

Windows Application

Java/Applets Application

warning Refer What's new in Sahi Pro v8.0.0 for features and enhancements done in Sahi Pro v8.0.0.
warning Refer What's new in Sahi Pro Mobile Add-on v8.0.0 for features and enhancements done in Sahi Pro Mobile Add-on v8.0.0.