Find button in the page and click on It

Hi,
I’m trying to solve this problem: I have a button in the page that I need to check if that exist, if yes click on it, if no do nothing. This button isn’t in the same place in every page. How do I find it and click on wherever is it?

I’m using check app state to verify if there’s the button, is this correct?

But I couldn’t manage to get his position and then, if it appears, click on it, wherever his position.
Can someone help me? Explaning me how to intercept the button find

@Gabriele_Radici

Use check app state activity or element exist activity

I’m already using it. But how can I click on it wherever it is on the page?

1 Like

@Gabriele_Radici

If it is a pop up don’t highlight other elements in the screen. Highlight the one which you want to click .

Change the selectors to fuzzy. disable strict and don’t give any anchors to it

No, is not a popup. I got this to click on it, but it works only if the button is in that position.
Cattura

How an i fix that to click wherever is tue button

@Gabriele_Radici

Change the Selectors to fuzzy. So that it will identify the Target element

@Gabriele_Radici

looks like your click captured the cordinates

try to remove them and use the same selector using in check app state

cheers

Hi @Gabriele_Radici ,

Check the attributes of the button. Keep aaname and remove other things. If possible can you post the selector?

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