Question
5
Replies
27
Views
Atos
Posted: December 4, 2020
Last activity: December 7, 2020
WaitForInputAllowed made the bot slow
Hi,
We were facing issues in prod environment with mainframes application where as there were no issues in non prod.
To fis this issue, I have used WaitForInputAllowed on mainframes screen before sending key strokes. And that made tha bot very slow.
Can anyone suggest any better idea or what made it slow
***Edited by Moderator: Pooja Gadige to add platform capability tag***
Hi Tejaswini,
As per my understanding the WaitForInputAllowed method, will wait for a certain amount of time(30000 ms). This will ensure that the controls get created.
Instead, you use the IsCreated property of an object to see if it is matched at a specific point in time. Along with this you define a looping logic, that will check if the control is created, if it is created it will proceed, if not it will take the else path and retry again.
We faced exactly same issue, and the use of isCreated saved us. Hope this helps.
Thanks