Automate Windows applications.
This module automatically tries to install Windows Application Driver when installed. You will need to enable developer mode yourself.
Install
npm install windows-app
Usage
const windowsApp = const select close = await // Calculator app await selectawait selectawait selectawait selectconst result = Numberawait select console//=> "The result of 1 + 2 is 3" await
API
windowsApp(appId, options?)
Launch the specified application and provide options to manipulate it.
Only one application can be launched at a time.
appId
Type: string
The path to an exe file or the id of a UWP.
options
Type: object
timeout
Type: integer | false
Default: 10000
The timeout for interactions with elements and application startup in milliseconds. Set to false
to disable.
Return value
select(selector)
select.xPath(xPath)
select.class(class_)
select.id(id)
select.name_(name)
select.accessibilityId(accessibilityId)
Select an element in the launched application.
driver
The selenium-appium
driver.
close()
Close the application and end all associated processes. Returns a promise that resolves when completed.
Tips
- Use Accessibility Insights to inspect applications in order to get element names.