Forum Discussion

kandy1984's avatar
kandy1984
Contributor
11 years ago

How do to drag a specific item from a listbox

Hi,



I need to drag the first item from the list box to the panel on the right. At the moment, when this step is done by using recorded actions which sometimes goes and choose other items. Will i be able to work with the list box property and choose the specific item from the list and append it to the right panel?



Or do i need to write a script for this?



Thank for helping.



Sudha
  • Hi Sudha,

     


    Have you tried to record this action with TestComplete?


    I guess that the Drag method should be recorded in this case.


     


    Anyway, I think that creating your own script to drag the specified item to the needed position will be more reliable. For this, you need to use native properties and methods of the controls. You can refer to controls' documentation to learn them.