A question posted on the forum of my Selenium WebDriver course. “Can I use Selenium WebDriver to automate a Windows Desktop Application?”
I have updated and expanded the answer I provided on the course forum into this blog post.
Answer: No. WebDriver is Web only. But…
Since WebDriver has a RemoteWebDriver architecture, people have created RemoteWebDriver implementations which aim to automate Windows Applications:
Some options that I have not tried, based around WebDriver:
- Winium describes itself as a Remote WebDriver implementation for automating Windows Applications:
- Twin was created by ebay as a Remote WebDriver implementation for windows automating
I have not had to automate windows for a long time.
When I last automated Windows I used AutoIt:
- there is a robot wrapper as well https://blog.codecentric.de/en/2014/02/robot-framework-testing-windows-applications/>
I started work on my own Java Windows Automation API, but I haven’t kept that up to date since I haven’t had to automate windows. JWinAuto on sourceforge.
Also available is the AutoIt4Java implementation:
You might also consider AutoHotKey, a simple language like AutoIt and widely used.
I have heard of…
I have heard of people successfully using White :
I have also heard people successfully use Sikuli:
Other standalone tools: