Skip to content
Get Free Trial

What is new in Sahi Pro v5.1.1

Sahi Pro 5.1.1 is a significant bugfix release.

  • Added donot_download_urls.txt in userdata/config.. download_contenttypes.txt and download_urls.txt specify which files should be be downloaded using contenttype or url pattern. Sometimes all urls of a particular content type need to be downloaded, EXCEPT some matching a particular URL pattern. These exception URLs can be specified in donot_download_urls.txt.
  • Working with Sahi APIs made easier through Controller.
    • Select an API from APIs List: textbox and press Enter key to copy it to the Evaluate expression box.
    • Element Accessors can be inserted at a specific cursor position or cursor selection in the expression inside the Evaluate expression box, through the Accessor Copier.
  • Added more support for REST APIs.
  • Added APIs _frame, _startLookInside, _stopLookInside.
  • _wait now accepts a function as the condition argument. Sahi will wait for either the entire timeout or till the specified function returns true.
  • Added ability to configure substitutions.xml, content_detection.txt, email_template.txt, response_headers_remove.txt, urlhistory.txt, donot_download_urls.txt and user_extension.js through Configure link on Dashboard.
  • Changes to configuration files (through Configure link on Dashboard) excluding browser_types.xml and userdata.properties do not need a restart of SahiPro. Refresh the application page for changes to take effect.
  • Added argument ignoreEmptyRows in _readCSVFile API, to ignore blank rows in the csv file.
  • Added Find functionality in Sahi Script Editor. Earlier, unless the script had been scrolled once, text could not be found successfully on the page.
  • Applet docs updated.
  • Renamed mail.subject to mail.subject.prefix and mail.content to mail.content.prefix in email.properties. These values can be left blank.
  • Updated documentation for sending email through Sahi.
  • Sahi favicon changed on the Controller.
  • PhantomJS icon will be displayed on the Dashboard if phantomjs.exe is present in <SAHI_INSTALL_FOLDER>/ext/phantomjs. The configuration need not be explicitly added to browser_types.xml.
  • Changes to expand Links automatically in the Docs tree on search.
  • Fixed Testrunner playback in single session.
  • Fixed Suites playback on mobile devices.
  • Docs will now open correctly on IE 8 browser.
  • Fixed Email Reports functionality for Linux.
  • Fixed failure in SSL root certificate acceptance when there was a space in the Sahi installation path.
  • Fixed Element identification problems in Flex.
  • Fixed under API in Sahi Java driver to handle limit parameter.
  • Fixed bug causing textarea (input type = "textarea") not to be identified.
  • Fixed bug in _fieldset. _fieldset API would previously throw an exception if not present on the page. Thus one could not do _exists(_fieldset("xyz")) or _isVisible(_fieldset("xyz")).
  • Fixed Evaluate Expression smart dropdown in Controller, for IE8.
  • _readCSVFile can now read the contents of a file specified through a URL.
  • Fixed bug in Sahi code injection to honour X-UA-Compatible meta tag on IE10.
  • Fixed bug in Sahi code injection when script tag appears above head tag.
  • _getSelectionText API fixed for IE11.
  • Fixed logs generated on using _fail API. _fail API when used in a script, would get logged thrice.
  • _typeKeyCodeNative fixed to handle special characters (like ‘$’, “@’, etc).
  • _writeCSVFile API fixed in case of file overwrite. Previously, an additional blank line was being added as the first line of the csv file in the case of ‘overwrite’.
  • On Mac, .sh files (start_dashboard.sh, testrunner.sh etc) are now automatically executable.
  • If a script is run from TestNG/JUnit on IE browser, and the proxy settings of the browser were to be reset externally (through a ProxySettings monitor, say), Sahi would not kill the browser and execution would hang. Now Sahi will throw an exception after 150 seconds and the browser will close.
  • Fixed broken upload functionality through XmlHttpRequest.
  • Fixed bug to filter columns Run, Passed, Failed correctly on the main Reports page when Show Testcase Summary is pressed.
  • Fixed broken Doc Viewer functionality in Script Editor on Linux.
  • Fixed closing of new Download window and addToSession window for IE.