How to use Condition with image exists

Hello… I need help… I want to make a flowchart with one validation…
In one webpage appers a image … I need get this image and make a “if”…
if this image exists my robot need continue to next step, if not exist I need make login!
But I don’t know how get the “div” for exemple in this image… and how use how condiction in activite “if”…

Hey @Grazielle_Lemos,

Is this what you’re looking for?

Yes, but how I use the image in “if” and how I get the “div name”…?

Hi @Grazielle_Lemos,

To use an image exists and an if statement, you would create a variable in the properties pane of the image exists, which is a Boolean type:

Then in the If statement, specify the variable you have just made, as shown in the screenshot on my previous reply.

If you are trying to use the indicated image elsewhere, I suggest using a Take Screenshot activity, which will generate a useable image.

I am not sure what you mean by getting the DIV name, this is an attribute of a selector. You could use a Get attribute, indicate the element you want the div name of, and then specify “div name” (or something along these lines, I have not done this attribute before) in the activity, like so:

I try specify a variable, but how I use this for condition… ?


Vou tentar explicar no meu idioma nativo…

Eu usei o “image exits” para reconhecer a imagem… Onde diz “Output Found” coloquei a variável… no “if” eu precisava colocar dentro da condição algo como “se a variável existir” e ai as ações para caso ela exista ou não!

Minha primeira ideia era usar o find image ou o image exists, mas não estou conseguindo usar eles da forma correta.

Hi @Grazielle_Lemos,

I see you’re using C#. It should be the same as VB though. You can use a fllow decision in a flowchart and it works the same as an if statement. Enter the condition in the properties panel and then put message boxes on either side of the decision:

Consegui entender a sua lógica, mas ele apareceu este erro!