Skip to content

Commit

Permalink
[dotnet] Fix compile errors in InternetExplorerOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Aug 26, 2021
1 parent eb31a2c commit cfde816
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dotnet/src/webdriver/IE/InternetExplorerOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public class InternetExplorerOptions : DriverOptions
private TimeSpan fileUploadDialogTimeout = TimeSpan.MinValue;
private string initialBrowserUrl = string.Empty;
private string browserCommandLineArguments = string.Empty;
private string edgeExecutablePathCapability = string.Empty;
private string edgeExecutablePath = string.Empty;
private InternetExplorerElementScrollBehavior elementScrollBehavior = InternetExplorerElementScrollBehavior.Default;
private Dictionary<string, object> additionalInternetExplorerOptions = new Dictionary<string, object>();

Expand Down Expand Up @@ -137,7 +137,7 @@ public InternetExplorerOptions() : base()
this.AddKnownCapabilityName(EnsureCleanSessionCapability, "EnsureCleanSession property");
this.AddKnownCapabilityName(FileUploadDialogTimeoutCapability, "FileUploadDialogTimeout property");
this.AddKnownCapabilityName(EnableFullPageScreenshotCapability, "EnableFullPageScreenshot property");
this.AddKnownCapabilityName(LegacyFileUploadDialogHanldingCapability, "LegacyFileUploadDialogHanlding property");
this.AddKnownCapabilityName(LegacyFileUploadDialogHandlingCapability, "LegacyFileUploadDialogHanlding property");
this.AddKnownCapabilityName(AttachToEdgeChromeCapability, "AttachToEdgeChrome property");
this.AddKnownCapabilityName(EdgeExecutablePathCapability, "EdgeExecutablePath property");
}
Expand Down Expand Up @@ -485,17 +485,17 @@ private Dictionary<string, object> BuildInternetExplorerOptionsDictionary()

if (this.legacyFileUploadDialogHandling)
{
internetExplorerOptionsDictionary[LegacyFileUploadDialogHandling] = true;
internetExplorerOptionsDictionary[LegacyFileUploadDialogHandlingCapability] = true;
}

if (this.attachToEdgeChrome)
{
internetExplorerOptionsDictionary[AttachToEdgeChrome] = true;
internetExplorerOptionsDictionary[AttachToEdgeChromeCapability] = true;
}

if (!string.IsNullOrEmpty(this.edgeExecutablePathCapability))
if (!string.IsNullOrEmpty(this.edgeExecutablePath))
{
internetExplorerOptionsDictionary[EdgeExecutablePathCapability] = this.edgeExecutablePathCapability;
internetExplorerOptionsDictionary[EdgeExecutablePathCapability] = this.edgeExecutablePath;
}

foreach (KeyValuePair<string, object> pair in this.additionalInternetExplorerOptions)
Expand Down

0 comments on commit cfde816

Please sign in to comment.