I try to press the red button at the bottom of the screen and that whole part cannot be located. The application fails.
A message appears: The UI object is invalid. make sure the target application is open
If I try in the upper part I succeed.
I also tried to capture with a photo and it didn’t help.
Can anyone help me with this?
The error message is telling you exactly what is wrong. It couldn’t find a suitable selector for that area. The supported selectors are starting with mbl, html or webctrl. If you think that, that area is part of the webpage then look in the visual tree and see if you can find it.
If you can find an area that the position of the button is relative to: meaning that it will stay at the same offset, then you can still click that by using click with offset.
@phaserescu
“If you can find an area that the position of the button is relative to: meaning that it will stay at the same offset, then you can still click that by using click with offset.”
Thanks
How can I find the offset of the object ?
The easiest way is visually (see the video below for more details):
You can also take a screenshot and measure the distance in pixels. You’ll not be pixel accurate but in most cases you don’t have to be, as you want to hit a relatively big button.

