Skip to content

Commit 609b3d3

Browse files
committed
Rename desiredCapabilities to firstMatch in DriverFactory
Renamed the variable `desiredCapabilities` to `firstMatch` in the `DriverFactory.cs` file within the `G4.Abstraction.WebDriver` namespace. This change is reflected in the retrieval from `driverParams` and the assignment to the `FirstMatch` property of the `_sessionModel` object. This improves naming consistency and code clarity.
1 parent 93692f7 commit 609b3d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/G4.Abstraction.WebDriver/DriverFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ public DriverFactory(IDictionary<string, object> driverParams)
8888

8989
// Set capabilities using provided values or default to empty models
9090
var capabilities = driverParams.Find("capabilities", new CapabilitiesModel());
91-
var desiredCapabilities = driverParams.Find("firstMatch", Enumerable.Empty<IDictionary<string, object>>());
91+
var firstMatch = driverParams.Find("firstMatch", Enumerable.Empty<IDictionary<string, object>>());
9292

9393
// Create and assign a new session model
9494
_sessionModel = new SessionModel
9595
{
9696
Capabilities = capabilities,
97-
FirstMatch = desiredCapabilities,
97+
FirstMatch = firstMatch,
9898
};
9999
}
100100
#endregion

0 commit comments

Comments
 (0)