WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Attaching to Existing Application using React-Native JS.

Open samuelfreiberg opened this issue 3 years ago • 1 comments

Hi all,

I need to use Appium/WinAppDriver to attach to an existing application. I've read through forums and post about how to do this in C++/C#, but I haven't been able to figure out how to do this in React-Native JS.

Our testing requires a separate entity to launch a Win32 app and get the app in a testing state. Then, using WebDriverIO/Appium/WinAppDriver, we need to attach to that application.

The problem I'm running into is I don't believe JavaScript has the ability to query the OS for current process'. I've seen other solutions in C# and Python, but I was wondering if anyone has done it in JS?

samuelfreiberg avatar Sep 13 '22 19:09 samuelfreiberg

I too tried that but this is not possible.

anunay1 avatar Sep 15 '22 14:09 anunay1

Closing. This is possible by writing a NodeJS C++ Addon that your project can take a dependency on.

samuelfreiberg avatar Oct 04 '22 15:10 samuelfreiberg