Forum Discussion

batruong's avatar
batruong
New Contributor
4 days ago

Handle Save File Download popup

Hi there, I have a trouble with Edge

How can I perform a Click() operation or interact by using Js scripts with the button in the image below?

 

4 Replies

  • rraghvani's avatar
    rraghvani
    Icon for Champion Level 3 rankChampion Level 3

    In Edge and Chrome, I have disabled the option "Ask where to save each file before downloading" - the file is automatically downloaded and I don't have to interact with the dialog.

    • batruong's avatar
      batruong
      New Contributor

      Yeah. But I wanna to custom save file path on my code. That no need hard the download save file path on setting

      • rraghvani's avatar
        rraghvani
        Icon for Champion Level 3 rankChampion Level 3

        If that is the case, then just enable MSAA in your project settings, and TestComplete will expose the browser objects. 

        Browser dowload dialog objects

         

  • eykxas's avatar
    eykxas
    Regular Contributor

    Hi !

    In your project properties, if you enable the generic MSAA class (*), you will be able to access all objects exposed by Edge.

     

    Then you can map it or interact with it in your usual way.