Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 2.53 KB

README.md

File metadata and controls

48 lines (34 loc) · 2.53 KB

Winium.Elements for .NET

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

Winium.Elements is a set of extensions for WebDriver C# bindings providing easy-to-use way of interacting with desktop-specific UI elements in Windows Desktop apps tested with Winium.Desktop

This is a set of extensions for WebDriver C# bindings providing easy-to-use way of interacting with desktop-specific UI elements in Windows Desktop apps tested with Winium.Desktop.

With the help of Winium.Elements you could simplify interaction with such complex elements like DataGrid, ComboBox, Menu and etc.

Quick Start

  1. Add reference to Winium.Elements.Desktop in UI test project (install NuGet package).

  2. Find element and convert it to [ElementType] using To[ElementType] method.

    var element = driver.FindElementById("data_grid");
    var dataGrid = element.ToDataGrid();

    Use element specific extension methods, for example:

    var cell = dataGrid.Find(1, 1);
    Assert.AreEqual("expected cell text", cell.Text);

How it works

Winium.Elements extends OpenQA.Selenium bindings adding Winium.Desktop driver commands.

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. 😃

Contact

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

License

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