Forum Discussion

RitaXu's avatar
RitaXu
New Contributor
2 years ago

How to drag a local file to specified area of Chrome UI when web testing by TestComplete

 

7 Replies

    • RitaXu's avatar
      RitaXu
      New Contributor

      Thanks for your help.

       

      when I use Call aqDragDrop.dragDrop(sFilePath, objArea)

       

      TestComplete will report error Object required: 'aqDragDrop'

      There is no aqDragDrop object

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Is it necessary to perform drag and drop, or can you load the file?

    • RitaXu's avatar
      RitaXu
      New Contributor

      yeah, I want to drap file and drop to specified area in Chrome page, the manual operation is available.

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    To identify the objects in Explorer, you will need to add the property value of WndClass to MSAA in Project Settings. This will expose Explorer objects to TC.

    You then need to get the screen coordinates of your Chrome object, in order to move the item from Explorer to your object in Chrome.

     

    If you record your actions, then convert record and playback to scripts, you will be able to see the coding that TC has generated. This will give you an idea, on how to perform drag and drop.