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.
_popup list control length
One of my team members has found the following problem
We have tried moving "_popup("DomainMembers")._select("ListMembers").length" into a function, but with no luck
Any suggestions.
Cheers
Donna
var $listcount = 0;
_set($listcount,_popup("DomainMembers")._select("ListMembers").length);
$listcount is never set to the correct value.We have tried moving "_popup("DomainMembers")._select("ListMembers").length" into a function, but with no luck
Any suggestions.
Cheers
Donna
Comments
What are the expected and actual results after executing this code?
Pankaj.
I was expecting that $length would be set to 36! I can not get the "_popup("DomainMembers")._select("ListMembers").length" to ever return a value, yet if I use the Sahi controller I can see that the value is 36.
Cheers
Donna
I am not sure but try using the code below and lemme know if it helps..
Regards,
Pankaj.
However I have found that if I preceed your _set and _alert commands with _popup($name). then I get the value 0 in an alert.....
Also
_popup("DomainMembers")._set($listcount, getLength());
(1) _popup("DomainMembers")._alert($listcount);
(2) _popup("DomainMembers")._alert(_select("ListMembers").length);
(1) has a value of 0 in the alert box
whereas
(2) has a value of 36 as expected in the alert box....
but I really need to store this value into a variable
Any more suggestions will be greatly appreciated, in the meantime I will continue..
Thanks
Donna