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.

onDrag event for _sahi drag drop api's

tejasbhojaktejasbhojak Members
edited November -1 in Sahi - Open Source
I want to test Dom alterations done by my drag drop api's during the drag event, how do i test that ???

Comments

  • Hi tejasbhojak,

    To test Dom alterations done by drag drop api,use the following code

    Eg:
    _alert(_sahi.list(Element to  Drag Id));
    _dragDrop(Element to drag,Element to Drop);
    _alert(_sahi.list(Dropped Element Id));
    

    and by comparing the both messages,you can identify the Dom alterations made by dragDrop api.

    Regards,
    Theeran.
  • Hey not like that, i checked _sahi.list API it lists all the attributes in the HTMLObject and functions

    my question was, suppose there is a div element and by drag n drop i am moving that div
    now during that movement another div width and height are changing, i want to test if those
    width and height are changed properly during the movement and not after drag n drop is done.
Sign In or Register to comment.