Skip to Content
0
Feb 03, 2022 at 01:57 PM

how to make wait or delay after Clicking the Toggle Button in SAP IRPA?

214 Views Last edit Feb 04, 2022 at 06:47 AM 2 rev

Hi,

I'm trying to select the drop down items after clicking the Toggle Button but here we got an "Error". after Clicking the Toggle button step it need to wait for sometime to get the dropdown items count. if it is not happen in the sense we can't able to get the Dropdown items Count , with out getting count we are not able to proceed our Process Further.

Please refer below code and ScreenShot. for reference.

screenshot-73-li.jpg

Code we used :

LoginSAPSuccessFa.pGenerateDocumentS.63__write_toggle.click()

var count = LoginSAPSuccessFa.pGenerateDocumentS.o_item0.count();

for(var i=0;i<count;i++){

var user = LoginSAPSuccessFa.pGenerateDocumentS.o_item0.i(i).get();

if(user == 'Custom Text'){

LoginSAPSuccessFa.pGenerateDocumentS.o_item0.i(i).Click();

}

Thanks in Advance,

Narenthiran Annamalai.

Attachments