2

I have a desktop app I am testing that is launched through an API (using JavaScript). I am able to launch the app by making a few API calls, but I need something that can shift the context to the open desktop app so I can automate testing it.

This is my approach:

  1. Call API to launch app
  2. Switch to the open app to take control of it
  3. Automate testing things in the app

I know WinAppDriver can launch apps, like Calculator, but I'm not sure it can "switch" to an already open app.

João Farias
11.2k2 gold badges21 silver badges41 bronze badges
asked Feb 2, 2022 at 22:46
1
  • What have you tried so far and what were the results? Commented Feb 3, 2022 at 8:18

2 Answers 2

1

When we generally provide security testing services we need to use such kind of tools to switch between the desktop and web application.

TestComplete is the tool which is used for the same. it is the paid one but covers almost all the features that are required in the above statement.

answered Feb 18, 2022 at 9:12
1

Browser automation does not include the OS desktop and integrations with its applications so this is not currently possible with webdriver, selenium, cypress, protractor etc.
A different approach involving test data, APIs and non-browser testing might be worth considering but would need to be built by you.

answered Sep 3, 2022 at 12:16

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.