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.
Facing problem with the sahi's proxy.
Hi,
I have OS : Xp Browser Name and Version : IE6 Sahi Build : 2011-04-04
In my application, there is one scenario where after entering username, user get his password hint as a popup alert on clicking a 'get password hint' button.
The snippet for the alert is as follows.
<!-- <div class="content-messages errorMessage">
<p>The Following Errors Occurred:</p>-->
<!--added alerts for error messages-->
<script language="JavaScript" type="text/javascript">
alert('The password hint is 12.');
</script>
<!--<p>'The password hint is 12.</p>-->
<!-- </div>-->
But when i navigate through the application with sahi's proxy setting. The alert does not pops up.
Any help appreciated..Thanks in advance..
I have OS : Xp Browser Name and Version : IE6 Sahi Build : 2011-04-04
In my application, there is one scenario where after entering username, user get his password hint as a popup alert on clicking a 'get password hint' button.
The snippet for the alert is as follows.
<!-- <div class="content-messages errorMessage">
<p>The Following Errors Occurred:</p>-->
<!--added alerts for error messages-->
<script language="JavaScript" type="text/javascript">
alert('The password hint is 12.');
</script>
<!--<p>'The password hint is 12.</p>-->
<!-- </div>-->
But when i navigate through the application with sahi's proxy setting. The alert does not pops up.
Any help appreciated..Thanks in advance..
Comments
Sahi does not display alerts during playback.
You can use:
_log(_lastAlert());
Kindly follow the details about _lastAlert():
http://sahi.co.in/w/_lastAlert
Regards
Sumitra
Thanks for your quick response
1)Change the browser LAN settings to localhost and port no to 9999
2)Start the sahi.bat file
3)Open my application
4)Enter the username and click on a button. After this a alert is expected. But it is not populating.
My browser's popup blocker is turned off. The particular webpage on which the alert is expected is in secure domain(https).
Also only this types of alerts(which i have mentioned in my earlier post) is not populating.Please help me out.
It is an expected behaviour of sahi. Sahi does not display alerts during playback.
If you want to do assertion on alerts then you can use _lastalert();
Regards
Sumitra
I am not replaying the scripts. I am just navigating through my application with sahi's proxy server settings. I have not recorded any scripts yet.
Regards,
Rashmi.
Can you let me know if the popup alert on clicking a 'get password hint' button comes through an Ajax response.
Regards
Sumitra
The popup alert is not an Ajax response.
Regards,
Rashmi
Can you use _log(_lastAlert()); after you enter username and check if the alert message is displayed?
Regards
Sumitra
Can you use _log(_lastAlert()); after you enter username and check if the alert message is displayed?
Regards
Sumitra