About the Try Catch

Hi Everyone.

I want to extract a text on website as below picture. When has an error in Try Block ( such as: the text not found ), the activity in Catch block will be executed ( show Warn message )

But in my workflow, the activity in Catch block not run.

Pls correct me.

Thanks in advance!

That mean your Try Block is not have any error.

1 Like

If it has any error ( such as: it not found text )… then the activity in catch block will execute.

But in my case, the activity in catch block not run when the text not found.

Get text activity return a string result. It no return a error or not.
Text not found that mean string result = empty (It is not an error)

1 Like

But i think when it not found information as below ‘aaname’ to capture text, it is an error also right ?

May be i’m confusing about this case.

Please uncheck “ContinueOnError”.
image

1 Like

I have done this before

Thanks you!

Sorry. Anyone has another suggest for this case ?

I have tried to use Element Exists for test… I think if it not found text, then the activity in Catch Block will execute. But in my workflow, it not run .