Microsoft Edge datatable

Microsoft Edge datatable

Home Forums Ask Expert Microsoft Edge datatable

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.

        Virtual Expert

        ZAPTEST

        ZAPTEST Logo