Testing with a 3rd party application

Hello,

I am creating a test where I am linking a 3rd party email account to our program. The issue I am encountering is when the prompt pulls up to authenticate the email I am trying to link, I am unable to click anything in the pop up. The pop up comes out in a different window in the browser. How should I go about targeting this since it is outside of the tests current scope? I am unable to use XClick because there is no way for me to locate the new pop-up window.

can you share screenshot?


So, I want to be able to authenticate an email to link with our site. I’ve tried to use XDestopAutomation, but the problem is when I go to click back into the browser, the Microsoft sign in window is out of focus of the test.

once you click Grant Access
I assume pop up window opens

here you have to switch to desktop automation mode

{
      "Command": "XDesktopAutomation",
      "Target": "true",
      "Value": "",
      "Description": ""
    }

now click elements using XCLICK and image of the elements

{
      "Command": "XClick",
      "Target": "file1.png",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "XClick",
      "Target": "file2.png",
      "Value": "",
      "Description": ""
    }

turn off desktop automation mode

 {
      "Command": "XDesktopAutomation",
      "Target": "false",
      "Value": "",
      "Description": ""
    }

I tried this already. The issue I’m having is when I enable desktop automation and then go back to the browser, the window to authenticate the email is in a separate window. Is there a way to change focus to that new window?

you can click icon on taskbar to bring window in front.

1 Like