This is a set of extensions for WebDriver Clients 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 (.NET example)
Add reference to
Winium.Elements.Desktopin UI test project (install NuGet package).
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.
Contributions are welcome!
- Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
- Fork the repository to start making your changes to the master branch (or branch off of it).
- We recommend to write a test which shows that the bug was fixed or that the feature works as expected.
- Send a pull request and bug the maintainer until it gets merged and published.
Have some questions? Found a bug? Create new issue
Winium is released under the MPL 2.0 license. See LICENSE for details.