G4.WebDriver
2025.2.3.3
dotnet add package G4.WebDriver --version 2025.2.3.3
NuGet\Install-Package G4.WebDriver -Version 2025.2.3.3
<PackageReference Include="G4.WebDriver" Version="2025.2.3.3" />
paket add G4.WebDriver --version 2025.2.3.3
#r "nuget: G4.WebDriver, 2025.2.3.3"
// Install G4.WebDriver as a Cake Addin #addin nuget:?package=G4.WebDriver&version=2025.2.3.3 // Install G4.WebDriver as a Cake Tool #tool nuget:?package=G4.WebDriver&version=2025.2.3.3
G4.WebDriver
Description
G4.WebDriver
seamlessly integrates with WebDriver backends using the WebDriver protocol, offering a powerful and extensible framework for web automation and testing. Although designed for compatibility with the G4� ecosystem, this package can be used in any .NET project to provide a standardized interface for remotely controlling web browsers. The feature-rich RemoteWebDriver
class streamlines web automation tasks while ensuring compatibility across diverse environments.
Features
Remote Browser Automation
Control web browsers remotely using theRemoteWebDriver
class.Extensible Framework
Easily integrate with any WebDriver backend, making it suitable for a variety of automation and testing scenarios.Modern .NET Support
Built on .NET 8.0 to leverage the latest platform features and performance improvements.Interoperability
Provides a standardized approach to browser automation across different systems.
Installation
You can install the G4.WebDriver
package using one of the following methods:
Using the .NET CLI:
dotnet add package G4.WebDriver
Using the NuGet Package Manager Console:
Install-Package G4.WebDriver
Getting Started (C# Example)
Below is an example demonstrating how to use the RemoteWebDriver
with EdgeOptions
to automate a web browser in a C# project:
using G4.WebDriver.Remote;
using G4.WebDriver.Remote.Edge;
class Program
{
static void Main()
{
// Create an EdgeOptions object for browser configuration.
// Configure your Edge options as needed, for example:
// edgeOptions.AddArguments("start-maximized");
var edgeOptions = new EdgeOptions();
// Initialize the RemoteWebDriver with the desired endpoint and EdgeOptions.
using var driver = new RemoteWebDriver("http://localhost:4444", edgeOptions);
// Open a website.
driver.Navigate().Open("https://example.com");
// Find an element by its ID and perform an action (e.g., click).
var element = driver.FindElement(By.Custom.Id("sampleElementId"));
element.Click();
// Always ensure to close the driver after use.
driver.Quit();
}
}
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
- No dependencies.
NuGet packages (7)
Showing the top 5 NuGet packages that depend on G4.WebDriver:
Package | Downloads |
---|---|
G4.Models
The G4.Models namespace provides a collection of well-defined model classes integral to the G4™ framework, offering a structured representation of essential entities and configurations. These models facilitate the organization and management of critical information within the G4™ ecosystem. Included models cover aspects such as plugin details, author information, examples, and parameters, enhancing the clarity and coherence of the G4™ framework's design. Incorporate these models into your G4-powered applications for streamlined data handling and improved understanding of framework components. |
|
G4.WebDriver.Remote.Appium
The G4.WebDriver.Remote.Appium package is a foundational library for interacting with mobile 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 mobile devices, making it an essential component for automation projects. |
|
G4.WebDriver.Remote.Chromium
The G4.WebDriver.Remote.Chromium package serves as a foundational library for Chrome-based browsers, including Google Chrome and Microsoft Edge (Chromium). This library facilitates seamless communication with the Chrome WebDriver, enabling effective browser automation within the G4™ ecosystem and other automation environments. Designed for versatility, it provides a reliable interface for interacting remotely with Chrome browsers, making it an essential component for web automation projects. |
|
G4.WebDriver.Remote.Firefox
The G4.WebDriver.Remote.Firefox package is a foundational library for interacting with Firefox browsers through the Firefox WebDriver. This library facilitates seamless communication with Firefox WebDriver, enabling effective browser automation within the G4� ecosystem and other automation environments. Offering versatility, it provides a reliable interface for remote communication with Firefox browsers, making it an essential component for web automation projects. |
|
G4.WebDriver.Remote.Simulator
The G4.WebDriver.Simulator package is a versatile WebDriver simulator designed for generic use, providing a browser-less automation environment. Tailored for scenarios beyond any specific framework, this simulator returns mocks and stubs, enabling efficient unit testing without launching a real browser. Seamlessly integrate this simulator into your projects, whether G4-based or not, to simulate WebDriver behavior, test automation flows, and perform unit testing with ease. Enhance your development and testing processes by leveraging this lightweight and flexible simulator. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2025.2.3.3 | 194 | 2/3/2025 |
2025.2.3.2 | 71 | 2/3/2025 |
2024.11.14.75 | 1,332 | 11/14/2024 |
2024.11.14.74 | 219 | 11/14/2024 |
2024.11.14.73 | 209 | 11/14/2024 |
2024.11.14.72 | 222 | 11/14/2024 |
2024.11.13.70 | 229 | 11/13/2024 |
2024.11.12.63 | 239 | 11/12/2024 |