Forum Discussion

googleid_117429's avatar
googleid_117429
Occasional Contributor
13 years ago

Coordinates in test complete

Hi All,

 I need to drag and increase the size of a window which appears on clicking on a icon

I can use the drag function but it needs clientX and Y cordinated.How can i get the coordinates of the window

alertWindow.Drag(450,280,75,80)

in this case i have recorded and i got he positions but i want the function to be dynamic.


TestObj.Drag(ClientXClientYtoXtoYShift)


 how can i get ClientX and Y
  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)
    Hi Biji,



    You can set the window size using the Window.Position method:



    It's more reliable than dragging the coordinates.