G4.WebDriver.Remote.Android
2025.2.3.3
See the version list below for details.
dotnet add package G4.WebDriver.Remote.Android --version 2025.2.3.3
NuGet\Install-Package G4.WebDriver.Remote.Android -Version 2025.2.3.3
<PackageReference Include="G4.WebDriver.Remote.Android" Version="2025.2.3.3" />
paket add G4.WebDriver.Remote.Android --version 2025.2.3.3
#r "nuget: G4.WebDriver.Remote.Android, 2025.2.3.3"
// Install G4.WebDriver.Remote.Android as a Cake Addin #addin nuget:?package=G4.WebDriver.Remote.Android&version=2025.2.3.3 // Install G4.WebDriver.Remote.Android as a Cake Tool #tool nuget:?package=G4.WebDriver.Remote.Android&version=2025.2.3.3
G4.WebDriver.Remote.Android
Description
G4.WebDriver.Remote.Android
is a foundational library for interacting with Android devices through the Appium WebDriver. This library facilitates seamless communication with Appium WebDriver, enabling effective automation within the G4� ecosystem and other automation environments. Offering versatility, it provides a reliable interface for remote communication with Android devices.
Features
Remote Android Device Automation
Interact with Android devices remotely using the Appium WebDriver.Seamless Communication with Appium
Leverage the capabilities of Appium to enable effective automation on Android platforms.Versatile & Reliable
Provides a stable and standardized interface for remote interaction with Android devices.Modern .NET Support
Built on .NET 8.0 to harness the latest platform features and performance improvements.
Installation
You can install the G4.WebDriver.Remote.Android
package using one of the following methods:
Using the .NET CLI:
dotnet add package G4.WebDriver.Remote.Android
Using the NuGet Package Manager Console:
Install-Package G4.WebDriver.Remote.Android
Getting Started (C# Example)
Below is an example demonstrating how to use the RemoteAndroidDriver
with Appium options to automate an Android device in a C# project:
using G4.WebDriver.Remote.Android;
using G4.WebDriver.Remote.Appium.Models;
class Program
{
static void Main()
{
var options = new AndroidOptions();
options.AddCapabilities(capabilities: new Dictionary<string, object>
{
["platformName"] = "Android",
["platformVersion"] = "11.0",
["deviceName"] = "Android Emulator",
["appium:appPackage"] = "com.android.calculator2",
["appium:appActivity"] = "com.android.calculator2.Calculator"
});
var driver = new AndroidDriver(new Uri("http://127.0.0.1:4723/wd/hub"), options);
// Locate and click the "2" digit button
var digit2 = driver.FindElement(MobileDeviceBy.MobileElementResourceId("com.android.calculator2:id/digit_2"));
digit2.Click();
// Locate and click the addition operator button ("+")
var plusOperator = driver.FindElement(MobileDeviceBy.MobileElementResourceId("com.android.calculator2:id/op_add"));
plusOperator.Click();
// Locate and click the "3" digit button
var digit3 = driver.FindElement(MobileDeviceBy.MobileElementResourceId("com.android.calculator2:id/digit_3"));
digit3.Click();
// Locate and click the equals operator button ("=")
var equalsOperator = driver.FindElement(MobileDeviceBy.MobileElementResourceId("com.android.calculator2:id/eq"));
equalsOperator.Click();
// Optionally, retrieve the result displayed on the calculator
var resultElement = driver.FindElement(MobileDeviceBy.MobileElementResourceId("com.android.calculator2:id/result"));
var resultText = resultElement.Text;
// Output the result to the console
Console.WriteLine("Result of 2 + 3 is: " + resultText);
// End the session
driver.Dispose();
}
}
Documentation
For comprehensive documentation, detailed guides, and API references, please visit our GitHub repository.
Contributing
Contributions are welcome! If you have ideas, bug fixes, or enhancements, please open an issue or submit a pull request on our GitHub repository.
License
This project is licensed under the Apache License 2.0. For more details, please see the LICENSE file included in the project.
Support
If you encounter any issues or have questions, please open an issue on our GitHub Issues page or contact the G4� API Community.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net8.0
- G4.WebDriver.Remote.Appium (>= 2025.2.3.3)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on G4.WebDriver.Remote.Android:
Package | Downloads |
---|---|
G4.Abstraction
Provides an abstraction layer for creating WebDriver instances with configurable parameters. This library allows developers to initialize WebDriver instances with options for command timeouts, driver types, binary paths (local file path or grid endpoint), service configurations, and driver capabilities. It simplifies the setup process for automated browser interactions in remote or local environments. |
|
G4.Abstraction.WebDriver
Provides an abstraction layer for creating WebDriver instances with configurable parameters. This library allows developers to initialize WebDriver instances with options for command timeouts, driver types, binary paths (local file path or grid endpoint), service configurations, and driver capabilities. It simplifies the setup process for automated browser interactions in remote or local environments. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2025.2.5.6 | 0 | 2/5/2025 |
2025.2.5.5 | 0 | 2/5/2025 |
2025.2.5.4 | 0 | 2/5/2025 |
2025.2.3.3 | 173 | 2/3/2025 |
2025.2.3.2 | 65 | 2/3/2025 |
2024.11.14.75 | 1,027 | 11/14/2024 |
2024.11.14.74 | 115 | 11/14/2024 |
2024.11.14.73 | 121 | 11/14/2024 |
2024.11.14.72 | 125 | 11/14/2024 |
2024.11.13.70 | 127 | 11/13/2024 |
2024.11.12.63 | 130 | 11/12/2024 |