'Can we use selenium for testing desktop applications?
I am testing a WEB and Desktop application (cross OS application: Windows - Mac - Linux) and I'm using RobotFramework to automate the tests.
For the Web I use SeleniumLibrary and it works perfectly . For code reuse reasons, is it possible to use SeleniumLibrary to do the automatic tests for the Desktop application ? Is it possible to interact SeleniumLibrary with desktop application elements ?
Solution 1:[1]
SeleniumLibrary works on the web so you can't reuse the code for a Desktop App test.
For GUI Apps I suggest you looking to AutoitLibrary or ZoombaLibrary
Solution 2:[2]
It is impossible. For desktop applications testing you can use pywinauto
However for pywinauto you will need to use your custom libraries. You can have a look at Robtot framework custom libraries
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | pL3b |