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 click the confirmation pop-up while playing back
Hi,
In my application in one of the screen, when i click a radio button a confirmation dialog opens
as
"VB script: confirmation "
as heading of pop-up and a message appears and then i need to click Yes or No.
Sahi records the clicking of Radiobutton( i used IE as browser) but it wont record the pop-up or any confirm statements gets added to code.
Can anybody help me as to how i should proceed.
Also, when same i record using firefox, the pop-up wont show as VB script confirmation but instead the heading will be as "this link says as" and the message appears.
And i am able to proceed with it as an _expectConfirm(message) gets added during recording itself before the line of code of clicking radio button. So i am able to pass the pop-up window.
But not able to do it with IE. Kindly help me as to what i need to change in code.
Thanks in advance
Regards
Bhavitha
In my application in one of the screen, when i click a radio button a confirmation dialog opens
as
"VB script: confirmation "
as heading of pop-up and a message appears and then i need to click Yes or No.
Sahi records the clicking of Radiobutton( i used IE as browser) but it wont record the pop-up or any confirm statements gets added to code.
Can anybody help me as to how i should proceed.
Also, when same i record using firefox, the pop-up wont show as VB script confirmation but instead the heading will be as "this link says as" and the message appears.
And i am able to proceed with it as an _expectConfirm(message) gets added during recording itself before the line of code of clicking radio button. So i am able to pass the pop-up window.
But not able to do it with IE. Kindly help me as to what i need to change in code.
Thanks in advance
Regards
Bhavitha
This discussion has been closed.
Comments
It looks like a VB Script popup. We will have to check if it can be controlled via javascript, or client side VB Script. Is it possible for you send us the VBS code that throws that dialog? If you cannot post it here, please email it to support@sahi.co.in
Regards,
Narayan
Thanks a lot for the quick response.
Its a clientside VB script and the code which invokes the dialog is :-
<script language="vbscript">
function callMsgBox3()
callMsgBox3 = MsgBox("My Message?", 4388, "Confirmation")
end function
</script>
Please let us know what are the next steps to proceed.
Thank you
Regards,
Bhavitha
We are still not able to overcome this pop-up issue as it is a VB script which invokes it.
And we checked that we cannot use a javascript as per the client requirement.
Does sahi supports the VB scripts pop-up or is there any alternative to this issue.
Looking forward for your reply..
Regards,
Bhavitha
A quick dirty workaround:
1) Open sahi/config/inject_top.txt
2) Add this at the top 3) Restart Sahi, clear browser cache and try again.
This will always return true for MsgBox, but not alert anything.
We will see if we can also set expectations like _expectPrompt.
Regards,
Narayan
I tried the workaround, but the Sahi controller never opens up. Also the Start_bat file gives error as certificate not found.