18 January 2026:


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 able to get text of elements of popup window

Hi All,

I have a screen that has a span that comes on a popup window.when i try to get text in alert it shows the values in alert box as given below example :

_alert(_getText(_popup("Window")._span("lblTransNo")));

but at the same time when i do var $mytext = _getText(_popup("Window")._span("lblTransNo")); iam getting error.

when i try to use _set and try to set it in a variable i get error of window/domian.

I dont know why it shows values in alert but at the same time it cannot assign the same values in to a variable.



Please help.

Thanks and Regards,
aakash.

Answers

Sign In or Register to comment.