Blue Prism JavaScript based Confirm dialog automation

suhasdhongade

New Member
I want to automate textbox where existing functionality is when the value got changed from previous one, webpage shows confirm dialog box. its a javascript based.
I am not able to press OK button on it.

what I did so far
1. Tried to spy -failed
2. Did separate object and try to use it in Main automation but main automaton stuck when popup occurs. so action newly created never executes. - failed

PLEASE HELP
 

suhasdhongade

New Member
Guys I was able to solve it.

My Findings
1. Navigate stage was stuck only in case of dropdown value change event occurred along with Pop-up window
2. Pop-up on click button was not causing this issue.


I solved pop up not closing on dropdown value change by writing console application in c#. please refer following link for implemented class and method. Use ActivateAndClickOkButton() method in console app.
You need to keep calling ActivateAndClickOkButton() in loop


IEPoppupWindowClicker class to close IE Popup using c#

Console app

class Program
{
static void Main(string[] args)
{
IEPoppupWindowClicker appClicker = new IEPoppupWindowClicker();

Console.WriteLine("Appclicker is running . . . . ");

string buttonToClick = "Ok";
if (args.Length > 0)
{
buttonToClick = args[0];
}

while (true)
{
appClicker.ActivateAndClickOkButton(buttonToClick);
Thread.Sleep(3000);
}
}

}
 
Top