18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Sahi V3 2009-09-02 released

narayannarayan Administrators
edited November -1 in Sahi - Open Source
Folks,

After a lot of significant development Sahi V3 2009-09-02 has been released.
https://sourceforge.net/projects/sahi/files/sahi-v3/2009-09-02/sahi_20090902.zip/download

1) Sahi now has a Java driver which can be used to drive the browser in your JUnit tests.

Sample Java code looks like this:
String browserPath = "C:\\Program Files\\Internet Explorer\\iexplore.exe";
String browserProcessName = "iexplore.exe";
String browserOption = ""; 
browser = new Browser(browserPath, browserProcessName, browserOption);      
browser.open();

browser.navigateTo("http://www.google.com");
browser.textbox("q").setValue("sahi forums");
browser.submit("Google Search").click();
browser.link("Sahi - Web Automation and Test Tool").click();        
browser.link("Login").click();
assertTrue(browser.textbox("req_username").exists());

browser.close();    

Have a look at sahi/sample_java_project folder for running sample code. The Javadocs are available here: http://sahi.co.in/java/javadocs/

2) The Sahi Controller lists alternatives for any element, making scripting even more easy.
3) The following APIs have been added
    _tableHeader for TH tags
    _heading1 for H1 tags
    _heading2 for H2 tags
    _heading3 for H3 tags
    _heading4 for H4 tags
    
    _check added - checks a checkbox/radio button if unchecked
    _uncheck - unchecks a checkbox/radio button if checked
    _removeFocus - removes focus from element
    _blur - same as _removeFocus. removes focus from element
    _clearLastAlert - clears last alert message retreived by _lastAlert
    _clearLastPrompt - clears last prompt message retreived by _lastPrompt
    _clearLastConfirm - clears last confirm message retreived by _lastConfirm        

4) The following bugfixes have also been added
    Session id creation has been made unique.
    5xx Internal Server Errors will no longer break playback.
    If a page does not load within a time Sahi continues with execution based on sahi.properties settings.

Please have a look at this build and give us feedback.

Regards,
Narayan

Comments

  • Janethalloren11Janethalloren11 Members
    edited August 2010
    This is a great news..:)

    I have downloaded Sahi V3

    It works very nice...

    Thanks..
Sign In or Register to comment.