How to automate desktop application using Selenium - selenium-webdriver

What are the different ways to automate desktop applications using selenium?
We tried automating 360tc java application using Leanft
Some of the objects were not getting identified as expected
Hence decided to try with Selenium

Winium.Desktop.Driver.exe: you can download it from vl.6.0. This will act as a server and communicate internally via JSON wired protocol as selenium does.

From the top of the Selenium homepage:
Selenium automates browsers. That's it!
So, there aren’t any ways to use it to automate desktop applications (with the exception of the browsers it is designed to work with).

Related

What alternatives to Selenium WebDriver can I use for automated UI testing of a web application?

I'm working on a project that currently uses Selenium WebDriver to run automated UI tests for a web-based application. However, Selenium is no longer being approved for use on this project. My team is currently investigating alternative solutions. We need something that can be used with a CI/CD pipeline and that supports testing for multiple browser types. It would also be great if it can be integrated with Cucumber, which we also use currently, but this is not strictly necessary. I would love to hear your suggestions for anything that we can use. Thank you in advance!

Performing Automation Testing for both Web and Desktop Applications at the same time

I am performing an automation testing, and I have two applications. one is web application and the other is desktop application (WPF). They work together and one needs the other. To perform task on the desktop application the task should be finished first by the web application. I can do automation testing for the web application using Selenium or Protractor. At the same time I I can do automation testing for the Desktop application using Winium. But what I want is to perform automation for both sequentially. Is there any solution some one can provide me?
For your information my web application is developed using Angular JS.
Thank you in advance
Below is how I have configured my tests. I choose C# as the programming language. Selenium has .Net bindings so for UI interaction I use Selenium (C#). For Desktop App I am using FlaUI / (TestStack.White). My tests are written in SpecFlow (BDD's implementation in .Net). So that way I am able to test all of my apps under one umbrella and still use all of the open source technology for testing.
You can use following Tools : By using following tools you can interact with both Desktop and Web Component in a Single Test
Tosca :
It also supports Desktop and Web Automation. It's Community edition is FREE.
Refer Tosca
Ranorex
It supports Desktop, Web And Mobile as well. It is paid tool.
Refer Ranorex
TestComplete
It is an automated testing tool that lets you create, manage and run tests for any Windows, Web or Rich Client software. It makes it easy for anyone to create automated tests. And automated tests run faster, increase test coverage and lower costs. It is paid tool.
Refer Test Complete

Is it possible to create your own WinDriver class for windows standalone application via implementing selenium WebDriver interface?

Please tell me the process if its possible to create a driver for windows application using selenium webdriver.
No two windows applications use the same tools to build their UI, nor will they use the same language for their UI, so I would say no, it is not possible to build a driver for "windows applications". It might be possible for one specific application, but most likely not, as UI hooks are generally not exposed anywhere outside the application source code, so selenium would have no way to find the elements.

Is it possible to convert a keyword driven framework using Selenium WebDriver to Selenium grid?

I have developed a selenium keyword driven framework. It uses selenium WebDriver. Now I need to migrate to selenium grid. Can it done?
I used Java as the programming language.
Selenium Grid just provide browsers to run your tests which were written using Selenium WebDriver. Refer to Grid wiki:
Grid allows you to :
scale by distributing tests on several machines (parallel execution)
manage multiple environments from a central point, making it easy to run the tests against a vast combination of browsers / OS.
minimize the maintenance time for the grid by allowing you to implement custom hooks to leverage virtual infrastructure for
instance.

How to write selenium webdriver automation scripts for Flex applications

I am in the process of writing automation scripts for Flex applications using Selenium-Web driver but i don't know exact steps and the ids capturing for Flex application.have goggled several times but I couldn't get any exact solutions and answers.
Please let me know clear steps to write the automation scripts and capturing ids using any tool or from Selenium IDE.
Currently they provided me only application URL by using the application URL only I need to write the scripts using Web driver.
Although this only works with Selenium 1 (not webdriver), take a look at Flex Monkey:
http://www.gorillalogic.com/testing-tools/flexmonkium
Install the console and then start up a selenium server, loading the user extensions provided in the zip file (also available on the download page).
If you open up the page you are testing and then open the console, the console should indicate it is connected - you will then see actions in the selenium IDE.
If not, you need to deploy the application under test with the appropriate SWC projects for Flex Monkey to recognise the objects on the page.
As far as I know, You are not able to automate Flex web app using webdriver (at least the easy way). You can do it with Selenium RC, adding FlexUISelenium extension to RC and compiling application with Flex libs.
I've heard about writing Your own javascript methods with flex handling, but I didn't try (will investigate it soon).
Check this link.
However I do hope that I'm wrong, because I'm facing this problem now ;)

Resources