I would love to see a sample using TypeScript (or just JavaScript) to help me bootstrap for my own app.
I am willing to help out here and create a sample if anyone can help me understand how to create a session of WinAppDriver in JavaScript? Would it be similar to webdriver.js?
I think there is a bigger issue that WinAppDriver lacks a JavaScript implementation, that would be required before we can create a sample.
The JavaScript implementation could be built on top of the library that appium uses, wd
Have a look at my github project. It's not typescript but it does have the core of what you could use to get going.
https://github.com/committedtester/JSes6WinAppDriver
JavaScript samples have been added with the new WinAppDriver v1.2 release.
Thanks "committedTester", you are a life saver! I have been pulling my hair out for days trying to get UWP tests up and running in Word. Lots of simple calculator tests and notepad tests but nothing that requires a window focus change. I could see lots of chat about using windows handlers and attaching to a new session but all the examples where C# or Java. This seems to be the only example out there so far. Thanks for making you solution available to others.
Thanks @lynn-fisher, just glad to just give something back to the community!
Most helpful comment
Have a look at my github project. It's not typescript but it does have the core of what you could use to get going.
https://github.com/committedtester/JSes6WinAppDriver
-Preliminary work on getting loops working to deal with loading elements