Skip to content

Commit d807353

Browse files
committed
Updating .NET IE driver to process legacy capabilities properly
1 parent b46086e commit d807353

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dotnet/src/webdriver/IE/InternetExplorerDriver.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,15 @@ public override IFileDetector FileDetector
164164
/// <summary>
165165
/// Gets the capabilities as a dictionary supporting legacy drivers.
166166
/// </summary>
167-
/// <param name="capabilities">The dictionary to return.</param>
167+
/// <param name="legacyCapabilities">The dictionary to return.</param>
168168
/// <returns>A Dictionary consisting of the capabilities requested.</returns>
169169
/// <remarks>This method is only transitional. Do not rely on it. It will be removed
170170
/// once browser driver capability formats stabilize.</remarks>
171-
protected override Dictionary<string, object> GetLegacyCapabilitiesDictionary(ICapabilities capabilities)
171+
protected override Dictionary<string, object> GetLegacyCapabilitiesDictionary(ICapabilities legacyCapabilities)
172172
{
173173
// Flatten the dictionary, if required to support old versions of the IE driver.
174174
Dictionary<string, object> capabilitiesDictionary = new Dictionary<string, object>();
175-
DesiredCapabilities capabilitiesObject = capabilities as DesiredCapabilities;
175+
DesiredCapabilities capabilitiesObject = legacyCapabilities as DesiredCapabilities;
176176
foreach (KeyValuePair<string, object> entry in capabilitiesObject.CapabilitiesDictionary)
177177
{
178178
if (entry.Key == InternetExplorerOptions.Capability)

0 commit comments

Comments
 (0)