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.
Unable to capture value from listbox of child window..
Hi
I am trying to capture selected value from listbox using the following code..
var $x=_popup("Select_Recipients")._getSelectedText(_select("/recipType/"));
_log($x);
but it's giving error as follows..........
TypeError: Cannot call method "_getSelectedText" of undefined
Plz can any one suggest me..
Thanks in Advance,
Lokesh.
I am trying to capture selected value from listbox using the following code..
var $x=_popup("Select_Recipients")._getSelectedText(_select("/recipType/"));
_log($x);
but it's giving error as follows..........
TypeError: Cannot call method "_getSelectedText" of undefined
Plz can any one suggest me..
Thanks in Advance,
Lokesh.
Comments
Could you try using _selectWindow(popupId) API and check if this solves your issue.
ie _selectWindow("Select_Recipients");
var $x=_getSelectedText(_select("/recipType/"));
_log($x);
Regards
Sumitra