I would like to know if I can find a button in the browser but only within an arbitrary region which will be provided with coordinates.
(Note I am able to click on the entire web browser and it will find successfully but I need to know if i can dynamically provide regions and there have the robot check if the element exist or not).
Hi. Interesting question.
So, basically, you will need to get an element variable, set it’s clipping region around specific coordinates, then use that element variable in the Element property of the Click Element or Find Element.
You can use the Find Element activity to get your initial region, then use the Set Clipping Region to adjust the box that it looks in for the element. It’s been a while since I’ve adjusted clipping regions, so you should do a search on the forums for the syntax on that.
I hope this points you in the right direction.
Regards.