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.

usage of Under and in commands

madanmadan Members
edited November -1 in Sahi - Open Source
Hi,

I am using Sahi Pro with Anchor button i come to know how to use "near" command through Sahi Controller, in the same way how can i get code for "under" and "in" through Controller.

Comments

  • Hi madan,

    Here is an example:

    Navigate to http://sahi.co.in/demo/tableTest.htm, using Cell By Row Column table i will be helping you sue under an in apis.

    For _under;

    _getText(_cell("1-2",_under(_cell("Cell with id")))); If you try this on the Controller then it will return 1-2

    For _in;

    _getText(_cell("2-2",_in(_table(0)))); If you try this on the Controller then it will return 2-2.

    For more detailed example about "under" and " in" , kindly have a look at :

    http://sahi.co.in/w/all-apis

    Let me know if you face any problem.

    Regards
    Sumitra
Sign In or Register to comment.