Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, windows and java based applications. Get your 30 day free trial.

Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com

Sahi V2 Release 2009-05-21 is now available on sourceforge

narayannarayan Administrators
edited November -1 in Sahi - Open Source
Sahi V2 2009-05-21 is a stable build.
Please use and give feedback to make next release more stable. Download here


* Features added
Optimizations to increase speed.
Optimized listing of log files.
Added better error messages for el = null errors.
Added tests for failing features.

Added _parentNode(el, tagName, occurrence),
Added _parentCell(el, occurrence)
Added _parentRow(el, occurrence)
Added _parentTable(el, occurrence)
Added _cell("cellText")
Added _in() and modified other accessors to take inElement as parameter

saveAs looks at Content-Disposition: attachment to download files
Added tests around accessor identification
Test and highlight on the Recorder tab work on selected text
Temp files saved via "Save As" have session id prefixed to prevent overwrite.

_near
_rte for richtext editors based on iframe
Reset button added to Playback. Does not refresh page.
_scriptPath added
_type added to type partial content without blur or onchange.
moved to chunked encoding

Added element.visibility_check.strict = false to sahi.properties. This is the default now.
Added download.download_if_contentdisposition_is_attachment = false to sahi.properties.
Set this to true to automatically download files with header Content-Disposition:attachment.
Causes problems with blogger.com profile images.

Stubs for Sahi's APIs and basic objects like window and document added.
This allows variable declarations like
var $ln = _link("Form Test");
_click($ln);
Added xhr.wait_when_ready_state_3 to sahi.properties.
Set to false for cases if some XHRs never reach readyState 4. Needed for gmail.

* Bugfixes

Playback to recorder tab switch when moving between multiple domains during playback fixed.
Messages displayed multiple times during retry of step removed. Shows only once.
Fixed NaN error in _logException and _logExceptionAsFailure.
Fixed Content-Type related errors for state.js.
Fixed order of response headers (SignIn Cookie problem).
Log viewer shows file not found message and does not throw exception on console.

Autosuggest on Controller Accessor field does not disappear to the right.
APIs dropdown only lists public APIs of Sahi
_imageSubmitButton indexes fixed. (Treats alt and title equivalently)
saveAs NPE fixed

Fixed traffic logging. It had stopped working after moving to streams.

Divs are identified as _div instead of _spandiv
Spans are identified as _span instead of _spandiv
Tagged:

Comments

  • narayannarayan Administrators
    Documentation for the new features will be updated in a day or two.

    Notable additions to the API are _in and _near.

    Any element can be found relative to another by using _near. It helps in not depending on identification by index (like _link("delete[3]")), which can be brittle. Instead _in and _near help identify elements based on nearness to another element.
    _checkbox(0, _near(_span("user name 1"))); 
    // would return the nearest checkbox to user name 1
    
    _link("delete", _near(_span("user name 1")));; 
    // would return the nearest delete link even though there may be other delete links
    
    _link("delete", _in(_parentRow(_cell("User name 3"))));; 
    // would return the delete link in the same row as user name 3.
    
Sign In or Register to comment.