![GitHub license](https://img.shields.io/badge/license-MPL 2.0-blue.svg?style=flat-square)
This is an extension of WebDriver Java bindings. Provides a mechanism to write tests using Winium.Desktop, Winium.StoreApps or winphonedriver.
Winium.WebDriver retains the functionality of common driver and has specific methods for interaction with the Winium Driver.
-
Add reference to
winium-web-driver
to your pom.xml file:<dependencies> <dependency> <groupId>com.github.2gis.winium</groupId> <artifactId>winium-webdriver</artifactId> <version>0.1.0-1</version> </dependency> </dependencies>
-
Initialize an instance of specific for Desktop, StoreApps, Silverlight Options class.
[DesktopOptions] for example:
DesktopOptions options = DesktopOptions(); options.setApplicationPath("C:\\Windows\\System32\\notepad.exe");
-
Create the instance of the [WebDriver] class.
Use default constructor:
WiniumDriver driver = new WiniumDriver(options);
Use the native WiniumDriver executable:
WiniumDriverService service = new WiniumDriverService.Builder() .usingDriverExecutable("path_to_driver_executable") .usingAnyFreePort() .withVerbose(true) .withSilent(false); .buildDesktopService(); WiniumDriver driver = new WiniumDriver(service, options);
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 or contact us at [email protected]
Winium is released under the MPL 2.0 license. See LICENSE for details.