I don't understand what the errors are

Hello everyone.

According to the automation I want to create, the robot will enter the website and check whether the required page of the site is opened. If the page opens, it will tell me “The system is working” via Whatsapp Web. If it is not working, it will wait 2 minutes, reload your site and repeat all the steps from the beginning.

When I debug, the following errors occur. Anyone have any ideas?

I bet you have ElementFound declared more than once, and one of them is string. Search for ElementFound in universal search, see if it comes up more than once.

Also, your screenshot doesn’t show which activity the error is coming from.

Hi @aykhan.rahimli

Can you please share the screenshot of the variable that you have passed in the fow decision?

This error might be occured if you give .ToString after the Boolean variable so make sure that you have passed only the ElementFount Variable without .toString in the Flow Decision.

Regards

I defined the Element Found variable only once in the “Element Exist” activity as boolean. When I do a universal search, “No results found” appears.

You don’t need “=True” - a boolean already returns true or false.

Which activity is throwing the exception? Have you run it in debug to see where it stops?

1 Like

Then you aren’t doing the search correctly. Make sure you’ve typed the variable name exactly, and make sure you have “current file” or “all files” selected.

Hi @aykhan.rahimli

Don’t assign true for that variable. If you does in this way the bot will always execute as true only. Where are you facing the error please debug the code.

Regards

1 Like

Thanks. I did what you said and the problem was solved. I am grateful

Yes, thank you very much. My problem is solved.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.