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.
not getting link count
Dear All/ Sumitra,
i want to get the link count under existing specific div tag
i used the below code to get the links count it is working fine
var $subjArea = _collect("_link", "/./", _in(_div("Menutagname1_TreeView1")));
_alert($subjArea.length)
but the same above code is used for another div tag but it not getting the count, showing zero
below is the another code which is displaying the link count as zero
URL: http://69.26.122.107/Maine/WEB/Maine_report/DTHome.aspx
after page gets generated in left side panel click the "Dropout" link and u will find sub links in right side panel, here click the 1st link and u will drill down to the report
here execute the below script then the link count is showing as zero but we have to get 3
var $subjArea = _collect("_link", "/./", _in(_div("contentDT"))); //Menutagname1_TreeView1n1
_alert($subjArea.length);
kindly help me in this issue, its very urgent for me to implement in my application
Thank you all in advance
i want to get the link count under existing specific div tag
i used the below code to get the links count it is working fine
var $subjArea = _collect("_link", "/./", _in(_div("Menutagname1_TreeView1")));
_alert($subjArea.length)
but the same above code is used for another div tag but it not getting the count, showing zero
below is the another code which is displaying the link count as zero
URL: http://69.26.122.107/Maine/WEB/Maine_report/DTHome.aspx
after page gets generated in left side panel click the "Dropout" link and u will find sub links in right side panel, here click the 1st link and u will drill down to the report
here execute the below script then the link count is showing as zero but we have to get 3
var $subjArea = _collect("_link", "/./", _in(_div("contentDT"))); //Menutagname1_TreeView1n1
_alert($subjArea.length);
kindly help me in this issue, its very urgent for me to implement in my application
Thank you all in advance
This discussion has been closed.
Comments
when reading the dropout rates _count("_link", "/./", _in(_table("7iT0"))) = 3, these table ID doesn't seem to change, maybe you use it instead of _div("contentDT").
Regards
Wormi
thank you very much for your quick reply
the code which was posted by u is correct, working fine for the report which u have tested but when we go to another report this code is not working as there is different table ID in different report
if i use this way " _in(_table("7iT0")) " this "ID" is dynamic for each specific report
in another report the id may contain or may not
please let me know if there is any other way for this issue
once again thanks a lot globalworming
Use:
_in(_table("//"));
Check if this solves your issue.
Regards
Sumitra
thank you for your reply
it is also not working
it is giving all the links in left panel but i want the links only in report which is in right side panel
please go visit below URL to get idea wat exactly i want
URL: http://69.26.122.107/Maine/WEB/Maine_report/DTHome.aspx
after page gets generated in left side panel click the "Dropout" link and u will find sub links in right side panel, here click the 1st link and u will drill down to the report
after the report gets generated, here i need to get the link only in report but the code which u have posted is getting the links from left side panel
its working fine, amazing
thank you very very very much for your reply and supporting
really you are supporting us with correct code and fast
if possible could u pls give me gmail/ yahoo emal ID to contact you
once again thanks a lot global