18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Is there anything like _click(x,y)?

lesSheppardlesSheppard Members
edited November -1 in Sahi - Open Source
Hi All,

Just a quick message to ask if there's any functionality within Sahi to click on an X,Y co-ordinate? Basically we have a media player, where we can click on any location along the slider and jump to that section of the media. I'm just trying to work out how I can do this in Sahi.

Cheers,
Les.

Comments

  • narayannarayan Administrators
    No, but you can use this hidden method.

    _call(_sahi.simulateMouseEventXY(element, "click", x, y));

    Not sure it will work in your case though, since we do not know whether the slider is part of the HTML or of the player.

    It looks like it may be useful to have a _click(_coordinates(x, y)) in Sahi. I will consider adding it in the next version.
  • Thanks Narayan - it worked a treat :)
Sign In or Register to comment.