What is new in Sahi Pro v5.1.1
abstract
Sahi Pro 5.1.1 is a significant bugfix release.
Features
- Added
donot_download_urls.txtinuserdata/config..download_contenttypes.txtanddownload_urls.txtspecify 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 indonot_download_urls.txt. - Working with Sahi APIs made easier through Controller.
- Select an API from
APIs List:textbox and pressEnterkey to copy it to theEvaluate expressionbox. - Element Accessors can be inserted at a specific cursor position or cursor selection in the expression inside the
Evaluate expressionbox, through the Accessor Copier.
- Select an API from
-
Added more support for REST APIs.
- Added API RESTRequest.setCredentials to handle pages that require Authentication (401 response code).
- Added API RESTRequest.setBody to set the body of the request with a complete set of key-value pairs.
- Added APIs _frame, _startLookInside, _stopLookInside.
_waitnow accepts afunctionas theconditionargument. Sahi will wait for either the entire timeout or till the specifiedfunctionreturnstrue.- Added ability to configure
substitutions.xml,content_detection.txt,email_template.txt,response_headers_remove.txt,urlhistory.txt,donot_download_urls.txtanduser_extension.jsthroughConfigurelink on Dashboard. - Changes to configuration files (through
Configurelink on Dashboard) excludingbrowser_types.xmlanduserdata.propertiesdo not need a restart of SahiPro. Refresh the application page for changes to take effect. - Added argument
ignoreEmptyRowsin_readCSVFileAPI, to ignore blank rows in the csv file. - Added
Findfunctionality inSahi Script Editor. Earlier, unless the script had been scrolled once, text could not be found successfully on the page. - Applet docs updated.
- Renamed
mail.subjecttomail.subject.prefixandmail.contenttomail.content.prefixin 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.exeis present in<SAHI_INSTALL_FOLDER>/ext/phantomjs. The configuration need not be explicitly added tobrowser_types.xml. - Changes to expand Links automatically in the Docs tree on search.
Bug Fixes
- 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
underAPI inSahi Java driverto handlelimitparameter. - 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 Expressionsmart dropdown inController,forIE8. _readCSVFilecan 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 APIfixed for IE11.- Fixed logs generated on using
_failAPI. _fail API when used in a script, would get logged thrice. _typeKeyCodeNativefixed to handle special characters (like '$', "@', etc)._writeCSVFileAPI 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,.shfiles (start_dashboard.sh,testrunner.shetc) are now automatically executable. - If a script is run from
TestNG/JUniton 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,Failedcorrectly on the mainReportspage whenShow Testcase Summaryis pressed. - Fixed broken
Doc Viewerfunctionality inScript Editoron Linux. - Fixed closing of new Download window and addToSession window for IE.