WebUI.mouseOverOffset(to, offsetX, offsetY) random position on the element

Hello!

Please help me to understand the schema to hover over a random position on the element.
I would like to use WebUI.mouseOverOffset(to, offsetX, offsetY).
offsetX, offsetY position in relative to the element.
Am I right to use just a random int among element int height value and element int width value?
Or I should take into account an absolute element position?

I have a warning while running the draft code for WebUI.mouseOverOffset() keyword:

org.openqa.selenium.interactions.Actions moveToElement
INFO: When using the W3C Action commands, offsets are from the center of element

Could you please clarify the proper way to hover over a random position on the element.

Thank you in advance for your help!

Please delete the post. The decision is found.
Thank you.

Post it here and mark the question solved.

The forum doesn’t revolve around you.

  1. I get a width and a height of the element
  2. WebUI.mouseOverOffset(to, offsetX, offsetY)
    I use the center of element to define offsetX, offsetY based on the width and the height of the element