fbpx

Switch window and download files

Switch window and download files

Home Forums Ask Expert Switch window and download files

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #32642
    Megha Sharma
    Participant

      save_as.png
      Hi Team,

      Firstly I would like to say that ZAPTEST is a very amazing and user-friendly tool! Good work …

      I am a newbie and recently started using ZAPTEST free edition for my desktop application. I need a few below clarifications and help is really appreciated:

      1. Which method/function do I need to use to switch to a new window and again move back to the parent window? Is there any other way to switch to a new window that opens when clicking a button/link?

      2. How could I download a file to a specific folder when a dialog window(sava_as window explorer) opens?

      Thanks in advance!

      #32643
      Sergey ZAP
      Keymaster

        Hello!

        1. If you need to switch between different application windows during a test, you need to scan the windows into different Application objects. For the Application objects keep property Activate Window=TRUE. ZAPTEST will focus on a window before accessing objects on it.

        2. You can type Path+File into the “File Name:” field.
        – define a relative object for the File Name edit box (you can use “File Name:” as a parent object).
        – use Type method to type full path. Example:
        Application(“Application”).View(“View”).Object(“File Name:”).Object(“editFileName”).Type “C:MyFolderZAPTEST Documentation{ENTER}”

        #32644
        Megha Sharma
        Participant

          Thank you so much for your valuable and quick response .. 🙂

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.

        Virtual Expert

        ZAPTEST

        ZAPTEST Logo