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 Pro - Updated Documentation for 5.xx?

CathySoQACathySoQA Members
edited May 2013 in Sahi Pro
Will there be updated docs for Sahi Pro 5.xx? The PDF for download is for 4.2 and the online docs are from 3.5. I am interested in some of the new apis but have no idea how to implement them? If not, does anyone know how to implement _verifyLayout? I can see the syntax, _verifyLayout(data, threshold) but what the heck goes where?


Thanks,

Cathy

Answers

  • Hi Cathy,
    I think this should help you out.

    _verifyLayout internally checks whether the 2 elements are in same row or line. if the difference of the y co-ordinate of the 1st and 2nd element is less than or equal to 4. Sahi will consider that both of the elements are in same row or line.

    Parameters:

    Name Type Description
    string string String which is returned by _readLayoutFile(text_file_path)
    pixel int pixel value that needs to be ignored while validating the page layout


    Example:

    //Reads the data which is stored in the variable by using _readLayoutFile(text_file_path) and validate the page layout
    var $data = _readLayoutFile("layout.txt");
    _verifyLayout($data, 4);


    $threshold = 4;
  • Thanks Pratyush. That helped a bit. Is there an ETA on updated docs? I'm also trying to figure out how to utilize "User Defined Id" for reporting...
Sign In or Register to comment.