18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
How to use _near under etc.
Website: www.idera.com
1. Open www.idera.com
2. Click on resources tab.
3. Verify that there is a link "White Papers" under "SQL Server" using _under api.
regards
Uday
1. Open www.idera.com
2. Click on resources tab.
3. Verify that there is a link "White Papers" under "SQL Server" using _under api.
regards
Uday
Best Answers
-
Hi,
Can you use the below code?
_link("White Papers", _near(_heading3("SQL Server")))
in this scenario we cannot use _under as SQL Server heading is in a div and link White Papers is in a seperate div, which you can view by inspecting element in the firebug
We can use _under if it is in a table
Thanks
Soumya -
Uday,
What u said first is correct, it would pass. below line of code should work at any circumstances.
_assertExists("White Papers", _getText(_link(0, _near(_heading3("SQL Server")))));
Thanks,
Ashokan.P
Answers
_assertExists(_link("White Papers", _near(_heading3("SQL Server"))));
is working fine.But if there is no link in the SQL Server box even then this test case
would pass as it would see a "White Papers" link in the nearby box.
Please correct me if I am wrong.
Regards
Uday
Sorry.It would not pass because the other "White Papers" link is in a separate box (another div).
Thanks.
Regards
Uday