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.

VB confirmation popup not closing with script

aparanjiaparanji Members
edited November -1 in Sahi - Open Source
Hi

I posted this question in Sahi forum before also but didn’t get the answer.

I am not able to close the VB confirmation pop up in my application with Sahi script.Its an alert which the developers cant change it into JAVA alert due to client requirement.
So we need work with this only.Its a show stopper for my automation because in every script I will start with this screen only. For now we are manually clicking YES button.

So can you people please look at our problem and suggest some solution.I


The source code for this pop up is

function permConfirm(){
if(caseform.permToCheck[0].checked){
var retVal=callMsgBox2();

if(retVal==7){
caseform.permToCheck[1].checked=true;
caseform.permToCheck[1].focus();
flag=false;
}else{
var obj1=document.getElementById("showContact").style;
obj1.visibility="hidden";
caseform.contactDate.value="";
flag=false;
}
}

if(caseform.permToCheck[1].checked){
var retVal1=callMsgBox3();
if(retVal1==6){
var obj1=document.getElementById("showContact").style;
obj1.visibility="visible";
var obj = document.getElementById("anchorId");
obj.focus();
flag=true;
}else{
alert("Thank you. We will not verify the current or most recent period of employment until instructed by you.");
flag=false;
}







I think this is the information I know about this if u want to know some more please tell me I will provide it.
With out solving this problem we cant batch run the scripts.

Thank you


Regards,
Aparanji
Sign In or Register to comment.