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 a _dragDropXY() equivalent in the Java API?

lsim001lsim001 Members
edited November -1 in Sahi - Open Source
Hi guys,
I'm trying to drag and drop a widget to a particular location using Sahi with Java but I can't find a suitable method. There doesn't seem to be an equivalent of _dragDropXY() in Java. I tried using dragAndDropOn() but it doesn't really allow you to specify a coordinate to drag to.

Can someone suggest how I can do this?

Thanks.

Comments

  • Hi Isim001,

    The dragAndDropOn() method can just be used to drag and drop to an element.
    This version of Sahi does not have a java equivalent to the _dragDropXY() API.

    Regards
    Sumitra
  • Thanks for your response. But I need to drag and drop an element to a particular point on the screen because I have free moving elements. So I think the dragDropXY method is still very useful. If you did elements that would automatically click to a position you would still want the dragDropXY() method to do boundary testing for when the element would click to it's position.
Sign In or Register to comment.