Skip to content

Extension to the official Selenium dotnet webdriver

License

Notifications You must be signed in to change notification settings

laolubenson/appium-dotnet-driver

 
 

Repository files navigation

dotnet-client

Nuget Build Status

Nuget (with prereleases) Build Status

This driver is an extension of the Selenium C# client. It has all the functionalities of the regular driver, but add Appium specific methods on top of this.

Note

The last stable version(v4.4.0) supports the legacy Selenium 3.150.0.
In case you would like to use this client with Selenium 4.0 and above, please use the latest beta version(v5.0.0).
We are well aware this project is not actively maintained, therefore any contributors are more than welcomed to assist with this project.

Appium server compatibility for v5.x

In case you are using the latest beta client v5.x please be aware you will either have to upgrade your appium server to 2.x or add the base-path argument: appium --base-path=/wd/hub, due to a breaking change on the default server base path.
Regardless, it's highly recommended you move to appium 2.x since appium 1.x is no longer maintained.
For more details about how to migrate to 2.x, see the following link : appium 2.x migrating

NuGet

NuGet Package:

Dependencies:

Note: we will NOT publish a signed version of this assembly since the dependencies we access through NuGet do not have a signed version - thus breaking the chain and causing us headaches. With that said, you are more than welcome to download the code and build a signed version yourself.

Usage

basics

  • You need to add the following namespace line: using OpenQA.Selenium.Appium;.
  • Use the AppiumDriver class/subclass to construct the driver. It works the same as the Selenium Webdriver, except that the ports are defaulted to Appium values, and the driver does not know how to start the Appium on its own.
  • To use the Appium methods on Element, you need to specify the parameter of AppiumDriver or its subclasses.

Read Wiki

See samples here

Dev Build+Test

Xamarin/Mono

  • Open with Xamarin
  • Rebuild all
  • Run tests in test/specs

JetBrains Rider

  • Open with Rider
  • From the menu Build -> Rebuild Solution
  • Run tests in Appium.Net.Integration.Tests

Visual studio

NuGet Deployment (for maintainers)

To Setup NuGet

  • Download NuGet exe.

  • install the NuGet CLI for your preffered OS.

    Windows
    Add the folder where you placed nuget.exe to your PATH environment variable.
    macOS/Linux
    alias NuGet='mono <Nuget Path>/NuGet.exe'

  • Setup the Api Key (see here).

To Release a New Version

Auto release follow the rule in github/labeler.yml

  • update assemblyInfo.cs, RELEASE_NOTES.md, and appium-dotnet-driver.nuspec with new new version number and release details, then check it in
  • pull new code
  • Rebuild All with Release target.
  • NuGet pack appium-dotnet-driver.nuspec
  • NuGet push Appium.WebDriver.<version>.nupkg

About

Extension to the official Selenium dotnet webdriver

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%