Is it possible to test desktop applications using selenium? Suppose we have a simple application like gtalk. A desktop application, can we automate that application with selenium.
-
sqa.stackexchange.com/questions/16269/…– Vasily RyabovCommented Apr 14, 2016 at 8:57
-
Winium is similar with Selenium which can easily learn by Selenium users. blog.testproject.io/2016/12/22/…– Rγσ ξηg Lιαη Ημ 雷欧Commented Oct 24, 2017 at 7:05
-
Yes, Selenium can be used for Desktop application testing– AmruthaCommented Dec 11, 2017 at 11:33
8 Answers
No, Selenium 2 / WebDriver is for web applications only. But there are other tools to automate desktop application GUI tests.
You can also search for "desktop application" on this site to find recommended tools.
-
Hey I have used UFT for testing desktop application. I was just willing to know is there any way to test them using selenium. Commented Jul 18, 2014 at 6:22
-
@Twaldigas, I wouldn't necessarily agree. I've heard of people testing desktop applications with embeded HTML content using elements of Selenium.– dzieciouCommented Jul 20, 2014 at 16:52
-
3@dzieciou Yes, some people use Selenium for other types of applications or other types of tests. I read about performance tests of web applications with Selenium. But Selenium is for GUI tests of web applications and nothing else. This is the intended area. Nothing else. There are proper tools for desktop application test automation. Commented Jul 21, 2014 at 5:41
-
-
2@dzieciou I do not know any tool for that. But I can not imagine how to test that with Selenium. Embedded HTML means that the HTML pages will be displayed in the desktop application. But with Selenium you can control browsers only. Commented Jul 24, 2014 at 7:49
Selenium does not have the capability to automate the desktop applications.It cannot recognize the objects in a desktop application. Selenium drives the testing using the driver object that identifies the elements on screen using id, cssselector, xpath etc. which are not present in a desktop app. Though there is ID behind the elements in a desktop app but as we all know that IDs are dynamic and cannot be relied on. Testers use autoIT,sikuli along with selenium to interact with windows UI if required by a website i.e. for the features like upload a file etc.
https://github.com/2gis/Winium.Desktop
Winium.Desktop is an open source test automation tool for automated testing of Windows application based on WinForms and WPF platforms. Winium.Desktop.Driver implements Selenium Remote WebDriver and listens for JsonWireProtocol commands.
-
-
I tried but found it not stable enough to handle custom UI controls.– CVACommented Mar 25, 2019 at 11:46
Twin is a tool for automating Windows graphical applications.The design is based on the web automation tool Selenium/WebDriver, and it can be used in similar ways. Grid 2.0 from webdriver was designed with TWIN in mind, so you can test against multiple virtual machines with different OS installed and let grid 2.0 install the last version of the AUT and route the tests to the correct VM. You can explore and download it from here: https://code.google.com/archive/p/twin/
-
Interesting, but this project seems dead or unmaintained Commented Dec 5, 2016 at 16:30
If the desktop application is Java Swing or Java FX based then you can use marathon-java-driver
which allows you to connect to your application using Selenium RemoteWebDriver and make calls.Disclaimer that I'm also one of the contributor for the project.
https://marathontesting.com/javadriver/
https://marathontesting.com/marathonite-user-guide/selenium-webdriver-bindings/
Winium. Google search for it. I haven't tried it yet, but it looks awesome.
-
1also just found this: github.com/microsoft/WinAppDriver Commented May 29, 2020 at 18:59
No, not with Selenium. If you are willing to consider something besides Selenium, look at SmartBear's TestComplete. It works well with web apps and desktop apps.
-
1TestComplete doesnt use selenium to test a desktop application (as asked in the question). It used a different (propitiatory) framework– ECiurleoCommented Jun 16, 2016 at 11:12
weather GUI and slkuli are open soure
-
2This isn't really an answer to the question, which asks if a desktop application can be tested with Selenium.– bishCommented Aug 14, 2015 at 4:49
-
1What is weather GUI and where can I find it? Commented Aug 14, 2015 at 11:06
-
So are you suggesting these as alternatives to Selenium? Or are you saying you can use Selenium to control these tools somehow?– corsiKa ♦Commented Aug 14, 2015 at 14:34