Skip to Content
0
Jun 15, 2020 at 02:35 PM

Getting issue while creating an application in SAP iRPA

133 Views Last edit Jun 15, 2020 at 02:51 PM 3 rev

Hi (Urgent help required),

I am creating an application for a client demo which is there in this week. But I am facing the issue at the time of Captchering the page. let me explain with the below screenshots:

1) I am using the detailed version: (Desktop Studio : 1.0.8.36 Desktop Agent: 1.0.8.36)

2) I am trying to captcher the page but not able to succeed as I am getting an error. I feel I have selected the correct criteria and looked for all possible way to rectify the error.

3) Please find the below codes for more detail.

// ----------------------------------------------------------------
//   Test menu for scenario Client_Openlose 
// ----------------------------------------------------------------
GLOBAL.events.START.on(function (ev) {
	if (ctx.options.isDebug) {
		// Add item in systray menu.
		systray.addMenu('', 'Client_Openlose', 'Test Client_Openlose', '', function (ev) {
			var rootData = ctx.dataManagers.rootData.create();
			
			// Initialize your data here.
			GLOBAL.scenarios.Client_Openlose.start(rootData);
		});
	}
});


//---------------------------------------------------
// Scenario Client_Openlose Starter ()
//---------------------------------------------------


// ----------------------------------------------------------------
//   Scenario: Client_Openlose
// ----------------------------------------------------------------
GLOBAL.scenario({ Client_Openlose: function(ev, sc) {
	var rootData = sc.data;


	sc.setMode(e.scenario.mode.clearIfRunning);
	sc.setScenarioTimeout(600000); // Default timeout for global scenario.
	sc.onError(function(sc, st, ex) { sc.endScenario(); }); // Default error handler.
	sc.onTimeout(30000, function(sc, st) { sc.endScenario(); }); // Default timeout handler for each step.
	sc.step(GLOBAL.steps.Start_SAPLogon760, GLOBAL.steps.pWindowSAPLogon760_ma);
	sc.step(GLOBAL.steps.pWindowSAPLogon760_ma, GLOBAL.steps.pSAP_management);
	sc.step(GLOBAL.steps.pSAP_management, null);
}}, ctx.dataManagers.rootData).setId('8b50f8b2-3eae-4d7b-b497-06db89dc0729') ;




// ----------------------------------------------------------------
//   Step: Start_SAPLogon760
// ----------------------------------------------------------------
GLOBAL.step({ Start_SAPLogon760: function(ev, sc, st) {
	var rootData = sc.data;
	ctx.workflow('Client Openlose', '9921717f-7795-4421-a938-68ae385cd04b') ;
	// Start 'SAPLogon760'
	SAPLogon760.start();
	sc.endStep(); // pWindowSAPLogon760_ma
	return;
}});


// ----------------------------------------------------------------
//   Step: pWindowSAPLogon760_ma
// ----------------------------------------------------------------
GLOBAL.step({ pWindowSAPLogon760_ma: function(ev, sc, st) {
	var rootData = sc.data;
	ctx.workflow('Client Openlose', '7ea07159-1006-4f69-9f5e-ee68cf414849') ;
	// Wait until the Page loads
	SAPLogon760.pWindowSAPLogon760.wait(function(ev) {
		SAPLogon760.pWindowSAPLogon760.stS4H102345172.setFocus();
		SAPLogon760.pWindowSAPLogon760.btLogOn.click();
		sc.endStep(); // pSAP_management
		return;
	});
}});




// ----------------------------------------------------------------
//   Step: pSAP_management
// ----------------------------------------------------------------
GLOBAL.step({ pSAP_management: function(ev, sc, st) {
	var rootData = sc.data;
	ctx.workflow('Client Openlose', 'a31cb37b-961a-41c3-a004-e40d445afc3e') ;
	// Wait until the Page loads
	SAPLogon760.pSAP.wait(function(ev) {
		SAPLogon760.pSAP.edClient.set("100");
		SAPLogon760.pSAP.edUser.set("*******");
		SAPLogon760.pSAP.oPassword.set("************");
    SAPLogon760.pSAP.keyStroke(e.SAPScripting.key._Enter_);
		sc.endStep(); // end Scenario
		return;
	});
}});
<br>

Request your urgent support for the same.

Thanks,

Randhir

Attachments

image.png (174.8 kB)