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.

Select a cell from the table.

nrjnrj Members
edited July 2013 in Sahi - Open Source
Hello ,

I have a webpage in which on clicking one of the option from menu, it opens another set of sub menus . Whatever option I am selecting from the sub menu , while executing the script , it takes the option above it.
Ex: If i have 3 options in the submenu address:

Address:
Name
Place
Area

Even if i have recorded as _click(_cell("Area")); , while running the program it executes the option clicked as "Place".
Please help me , how will can I get a "Click on "AREA" option"??

Answers

  • Hi:
    If your submenu is a table use funcion _under or _near and reference other element, for example:
    // Table:
    _click(_cell("",_under("Place")));
    or
    _click(_cell("Area",_under("Place")));

    // Other case:
    _click(_cell("",_near("Place")));
    or
    _click(_cell("Area",_near("Place")));


    Luck
Sign In or Register to comment.