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 record popup message
Hi,
I am unable to record user action on a popup message. There is only 'OK' button on it.
I tried below code, but still not able to record it.
var $label = "Some text which is there on popup window";
_expectConfirm($label, true);
Need your help.
Thanks in advance.
I am unable to record user action on a popup message. There is only 'OK' button on it.
I tried below code, but still not able to record it.
var $label = "Some text which is there on popup window";
_expectConfirm($label, true);
Need your help.
Thanks in advance.
Comments
Pressing CTRL key and hovering mouse over the popup message is not working for me. Sahi is not able to capture name of this box.
Can you tell me what the message is displayed in PopUp.
Regards,
Theeran.
we discussed earlier on file upload issue. now i have a doubt regarding how to use auto generate command to generate Auto number in my application what is its syntax ? and where to find it.
please reply so that i proceed further.
I am using Windows 7, on IE9, and using Sahi v3.5 latest version
Regards, kapil
Please create a new forum post.
Use:
_random(); API
For more details:
http://sahi.co.in/w/_random
Regards
Sumitra
That was an alert message and I am able to assert it by _lastAlert();
Now I am facing new problem, when I click on a link, a new window opens. This window has no title, complete URL is displayed in place of title. And I have to record actions on it. I am able to record them, but the script is getting failed during playback. The code I am getting for this new window is like.......
_assertExists(_cell("sometext"));
But I think the code should be like...
_popup("windowname")._assertExists(_cell("sometext"));
Can you please confirm if I am right. And please suggest me how to get title of this new window. Or any other way to record it.
Thanks in advance!
If after clicking on a link , it opens a popup window then it has to be prefexed.
Check if your script is running successfully after you prefex _popup("windowname")?If so then you will have to prefix with _popup("windowname").
Regards
Sumitra
I have already tried that, adding _popup("windowname") is not working for me.
That popup window has no title. So I tried with
_popup("")._assert(_cell("cellname"));
I also tested this code under 'Evaluate Expression' part of Sahi Controller. There it is returning 'true', but during playback assertion is failing.
Need your help.
_popup("")._assertExists(_cell("cellname"));
You can use regular expression in popup.
_popup(//)._assertExists(_cell("cellname"));
Check if this solves you issue.
Regards
Sumitra