Desktop screen scraping using OCR or Recording for 5 hours continuously

Hi Folks,

Am trying to perform some desktop screen scraping from my scada system where i have to read bunch of parameters (5 parameters) for 5 hours continuously (after every 100 millisecond) and then log them in notepad .

Is it possible with UiPath if yes can you please share me piece of code or an example with only one variable reading and logging for 5 hours.

I will be really very grateful…waiting for your replies.

@kiran4

Welcome to the UIpath Community.

Take current time and also 5 hours to current time as Final Time. And then check condition like

If Current Time < Final Time
Then do scraping data
Else stop it.

Note: Current Time - Now.Tostring(“hh:mm:ss”)
Final Time - Now.AddHours(5).Tostring(“hh:mm:ss”)

1 Like

Thanks @lakshman for your quick reply it really helped me get closer to the solution but now am getting this error :

RemoteException wrapping UiPath.Core.SelectorNotFoundException: Cannot find the UI element corresponding to this selector: —> RemoteException wrapping System.Runtime.InteropServices.COMException: Cannot find the UI element corresponding to this selector:
at UiPath.UiNodeClass.FindFirst(UiFindScope scope, String nodeID)
at UiPath.Core.UiElement.FindFirst(FindScope scope, Selector selector, IVariableResolver resolver)
— End of inner exception stack trace —
at UiPath.Core.Activities.TaskAsyncCodeActivity`1.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

How to solve it.

1 Like

@kiran4

It’s showing Select not found exception. Could you please check Selector once and validate and see.

am getting all type of new errors am really understanding now what to do.

@lakshman could you please reply on my above query.