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.
Retrieve all elements from web page and sahi can start clicking on links present on web page
Hi All,
Is there any way to retrieve all elements present on jsp/html page.
or any settings available through which sahi controller can start clicking on links present on jsp/html page without doing any previous recording.
Thanks.
Is there any way to retrieve all elements present on jsp/html page.
or any settings available through which sahi controller can start clicking on links present on jsp/html page without doing any previous recording.
Thanks.
Best Answers
-
Hi
there is the _collect API which could list you all visible links or you use soem kind of javascript DOM crawler
regards
wormi -
Hi Shashi,
Below is the example to get all the links in a page, same way u can get for different elements in a page by replacing "_link"
syntax: _collect(elementType, name, _in(leftPanel))
var $links = _collect("_link", "/./", _in(_div("divID")));
