Skip to content

Commit a6e0407

Browse files
committed
Correcting .NET IE legacy capability creation
1 parent d7562b1 commit a6e0407

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dotnet/src/webdriver/IE/InternetExplorerDriver.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
using System;
2020
using System.Collections.Generic;
21+
using OpenQA.Selenium.Internal;
2122
using OpenQA.Selenium.Remote;
2223

2324
namespace OpenQA.Selenium.IE
@@ -172,7 +173,7 @@ protected override Dictionary<string, object> GetLegacyCapabilitiesDictionary(IC
172173
{
173174
// Flatten the dictionary, if required to support old versions of the IE driver.
174175
Dictionary<string, object> capabilitiesDictionary = new Dictionary<string, object>();
175-
DesiredCapabilities capabilitiesObject = legacyCapabilities as DesiredCapabilities;
176+
IHasCapabilitiesDictionary capabilitiesObject = legacyCapabilities as IHasCapabilitiesDictionary;
176177
foreach (KeyValuePair<string, object> entry in capabilitiesObject.CapabilitiesDictionary)
177178
{
178179
if (entry.Key == InternetExplorerOptions.Capability)

0 commit comments

Comments
 (0)