fbpx

Microsoft Edge datatable

Microsoft Edge datatable

Home Forums Ask Expert Microsoft Edge datatable

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #31069
    Effa Nasa
    Participant

      Hi,

      I’m new to zaptest.. Currently trying free edition of zaptest and learning from the tutorial given.
      I want to add Microsoft edge browser into my datatable in my script, but it have error. What should I named it, I have try with edge and microsoftedge. All chrome, firefox, opera and safari is working fine. :dry:

      #31071
      Valentin ZAP
      Keymaster

        Good morning, Effaezn88!

        Current version of ZAPTEST doesn’t have shortcut for launching edge browser. It means that after launching browser you should update “Application” properties. See my example how to launch edge browser:

        Application("Application").Launch "microsoft-edge:http://www.zaptest.com"
        Application("Application").SetProperty "regexpwndclass", "ApplicationFrameWindow"
        Application("Application").SetProperty "regexpwndtitle", "ZAPTEST"
        wait 3
        Application("Application").CaptureBitmap

        “ApplicationFrameWindow” is const. Your should update only “regexpwndtitle” option. Usually you could keep it empty.

        You could apply this example to your datatable. ZAPTEST Team will add shortcut for edge browser in future release.

        If Datatable.Value("browser") = "microsoft-edge" Then
        Application("Application").Launch Datatable.Value("browser") & ":http://" & Datatable.Value("url")
        Application("Application").SetProperty "regexpwndclass", "ApplicationFrameWindow"
        Application("Application").SetProperty "regexpwndtitle", ""
        Else
        Application("Application").Launch Datatable.Value("browser"), Datatable.Value("url")
        End If

        wait 3
        Application("Application").CaptureBitmap

        Script is attached.

        Thank you,
        ZAPTEST Team

        Attachments:
        #31080
        Effa Nasa
        Participant

          Hi AndreySh,

          I have try your code and its works. I also have update the zaptest and now can just simply using edge without added the code.
          But Im just curious why the result showing fails when im try to open in edge.

          Anyway thanks for your help. 🙂

          #31276
          Valentin ZAP
          Keymaster

            Good morning, Effaezn88!

            Sorry for the long reply. This was fixed a couple month ago. Now you should use the same logic as for other browser’s.

            Application("Application").Launch "edge", "http://...your...url..."

            Thank you,
            ZAPTEST Team

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

          Virtual Expert

          ZAPTEST

          ZAPTEST Logo