Skip to main content

Desktop Form Automation

Launch a desktop application, fill form fields, read results, and close

Steps

#ActivityWhat it does
1LaunchApplicationLaunch the desktop application
2LeftClickClick on a form field
3KeyboardInputType into the form field
4GetTextRead text from the application
5TerminateApplicationClose the application

Workflow

appProcess = LaunchApplication("C:\\Program Files\\MyApp\\app.exe")
LeftClick("xPath", xPath="//Edit[@Name='FullName']")
KeyboardInput("xPath", "John Doe", xPath="//Edit[@Name='FullName']")
statusText = GetText("//Text[@Name='Status']")
TerminateApplication(appProcess)