Does Selenium Support automate to Desktop Applications

梦想与她 提交于 2020-03-28 07:03:22

问题


i want to use selenium to automate desktop application but desktop applications does not provide locators and elements X path,how can i locate elements in desktop application


回答1:


No, Using selenium we can automate only web based application. Selenium doesn't provide any way to automate desktop applications. For automating desktop application we can use other tools such as AutoIT.

Refer here for some idea->http://seleniumsimplified.com/2016/01/can-i-use-selenium-webdriver-to-automate-a-windows-desktop-application/




回答2:


Answering your question straight, No, Selenium doesn't support to automate Desktop Applications.

As you want to use Selenium to automate desktop application, Winium can be the best solution to your needs.

Winium:

Winium is a new open source framework, that’s based on Selenium and consists of 3 parts:

  1. Supports test automation on Windows applications.
  2. Supports test automation on Windows Phone operating system context (home button, notifications bar, toggles etc.)
  3. Supports test automation on Windows Phone applications.

Pros:

In case you are already using Selenium WebDriver and familiar with its API, using Winium is straightforward.

Cons:

As a result of it’s being a new project, few struggles come in the way. Its API still isn’t complete and not on the same maturity level as other tools in this category.

Bottom line:

In case you are considering Winium, my suggestion is to wait until it’s more baked.

Additional Resources:

You can find some more Open Source Test Automation Tools for Desktop Applications here.




回答3:


We have different ways to handle desktop application using selenium webdriver.

below are the different real time techniques

  1. AutoIT : AutoIT is the best option to work on window based application
  2. Sikuli : Sikuli is image based automation tool.

for more reference visit below link

https://sqa.stackexchange.com/questions/9254/can-i-use-selenium-to-do-desktop-application-testing




回答4:


No you can't automate native windows application with selenium.

But still you can achieve it by autoit or sikuli and again these tools are having few limitation on element activities, handling and reporting.

I would recommend you to take a look on RPA tools. which is trending in market now. you can automate any kind of apps like browser,native windows, citrix.

Consider uipath or blue prism. I agree these are all not opensource but it's deserved to pay. Uipath you can get some trial version try to use it.

Allt the best!!




回答5:


You can not automate windows windows based application using selenium . Now it depends on whether you want to use open source tools or microsoft tools.

Open source tools :

  1. Auto IT . Its is very fast and its librarry can be integrated with C# or JAva
  2. Microsoft based tools : Coded UI - its the latest tool which can work for both windows based and web based application.


来源:https://stackoverflow.com/questions/45749579/does-selenium-support-automate-to-desktop-applications

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!