2gis/Winium.Desktop

Name: Winium.Desktop

Owner: 2GIS

Description: Winium.Desktop is Selenium Remote WebDriver implementation for automated testing of Windows application based on WinFroms and WPF platforms.

Created: 2015-03-18 10:11:09.0

Updated: 2018-05-22 22:32:30.0

Pushed: 2017-09-15 12:08:10.0

Homepage: null

Size: 9656

Language: C#

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

English description | ???????? ?? ???????

Winium for Desktop

Build Status GitHub release ![GitHub license](https://img.shields.io/badge/license-MPL 2.0-blue.svg?style=flat-square)

Winium.Desktop is Selenium Remote WebDriver implementation for automated testing of Windows application based on WinForms and WPF platforms

Winium.Desktop is an open source test automation tool for automated testing of Windows application based on WinForms and WPF platforms.

Supported Platforms

For Windows Phone 8.1 test automation tool see Windows Phone Driver. For Windows Phone 8 Silverlight test automation tool see Windows Phone Driver.

Why Winium?

You have Selenium WebDriver for testing of web apps, Appium for testing of iOS and Android apps. And now you have Selenium-based tools for testing of Windows apps too. What are some of the benefits? As said by Appium:

  • You can write tests with your favorite dev tools using any WebDriver-compatible language such as Java, Objective-C, JavaScript with Node.js (in promise, callback or generator flavors), PHP, Python, Ruby, C#, Clojure, or Perl with the Selenium WebDriver API and language-specific client libraries.
  • You can use any testing framework.
Requirements
Quick Start
  1. Write your tests using you favorite language. In your tests use app desired capability to set path to tested app's exe file. Here is python example:

    t it in setUp
    .driver = webdriver.Remote(command_executor='http://localhost:9999',
                               desired_capabilities={'app': 'C:\\testApp.exe',
                                                     'args': '-port 345'})
    t it in test method body
    = self.driver.find_element_by_id('WpfTestApplicationMainWindow')
    find_element_by_id('SetTextButton').click()
    rt 'CARAMBA' == self.driver.find_element_by_id('MyTextBox').text
    
  2. Start Winium.Desktop.Driver.exe (download release from github or build it yourself)

  3. Run your tests and watch the magic happening

How it works

Winium.Desktop.Driver implements Selenium Remote WebDriver and listens for JsonWireProtocol commands. It is responsible for automation of app under test using Winium.Cruciatus.

Contributing

Contributions are welcome!

  1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
  2. Fork the repository to start making your changes to the master branch (or branch off of it).
  3. We recommend to write a test which shows that the bug was fixed or that the feature works as expected.
  4. Send a pull request and bug the maintainer until it gets merged and published. :smiley:
Contact

Have some questions? Found a bug? Create new issue or contact us at g.golovin@2gis.ru

License

Winium is released under the MPL 2.0 license. See LICENSE for details.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.