Action Spot from bottom of element?

Ask general questions here.
Fergal
Certified Professional
Certified Professional
Posts: 311
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Action Spot from bottom of element?

Post by Fergal » Wed Dec 04, 2019 3:47 pm

Ranorex 9.1.2

Coordinate and Pixel recording modes, allow setting the action point from the top left corner of the element.

I'd like to use the action spot to mouse click a certain number of pixels or a proportion from the bottom of the element, i.e. NOT from the top. Is that possible?

Thanks

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5459
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Action Spot from bottom of element?

Post by odklizec » Thu Dec 05, 2019 12:07 pm

Hi,

Could you please explain, in more details, what exactly you want to achieve?

Generally speaking, coordinates are always entered from top/left corner. You can either use some predefined action spots (LowerCenter|Left|Right) or you can enter pixel coordinates, but always starting from left-top corner of given element. If you want something specific, you may need to calculate the exact pixel-based coordinates in user code and pass them to action spot via variable.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Fergal
Certified Professional
Certified Professional
Posts: 311
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Re: Action Spot from bottom of element?

Post by Fergal » Mon Dec 09, 2019 9:53 am

calculate the exact pixel-based coordinates in user code and pass them to action spot via variable
Thanks for that suggestion odklizec, I will give that some thought to see if it will work for my requirements.