I have built a bot which is supposed to continuously scrape prices for defined products across multiple webpages to monitor price development.
The ‘get text’ selectors will work for all the featured websites, but if the price can not be found due to e.g. unavailability of the product, an error will be thrown and the bot will be terminated. You can see the error message in the attached Screenshot. I am sorry, that it is in German.
How can I catch this exception type in a catch block. I have tried with System.Exception, UIPath.Core.SelectorNotFoundException, System.Management.Automation.RemoteException already but none of them has yet catched the error.
I am new to exception types, so does anyone have an idea why it might not be working or what could be the correct exception type to catch the error?
Thanks in advance!