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.txt
inuserdata/config.
.download_contenttypes.txt
anddownload_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 indonot_download_urls.txt.
- Working with Sahi APIs made easier through Controller.
- Select an API from
APIs List:
textbox and pressEnter
key to copy it to theEvaluate 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.
- 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.
_wait
now accepts afunction
as thecondition
argument. Sahi will wait for either the entire timeout or till the specifiedfunction
returnstrue
.- Added ability to configure
substitutions.xml
,content_detection.txt
,email_template.txt
,response_headers_remove.txt
,urlhistory.txt
,donot_download_urls.txt
anduser_extension.js
throughConfigure
link on Dashboard. - Changes to configuration files (through
Configure
link on Dashboard) excludingbrowser_types.xml
anduserdata.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 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.subject
tomail.subject.prefix
andmail.content
tomail.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 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
under
API inSahi Java driver
to handlelimit
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 inController,
forIE8.
_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 mainReports
page whenShow Testcase Summary
is pressed. - Fixed broken
Doc Viewer
functionality inScript Editor
on Linux. - Fixed closing of new Download window and addToSession window for IE.