Skip to content

Commit dbf3ab0

Browse files
committed
IE doesn't allow setting of binary location
1 parent 2fc07b2 commit dbf3ab0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

dotnet/src/webdriver/IE/InternetExplorerDriver.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,18 +165,12 @@ private InternetExplorerDriver(InternetExplorerDriverService service, bool dispo
165165
/// <returns></returns>
166166
private static ICommandExecutor StartDriverServiceCommandExecutor(DriverService service, DriverOptions options, TimeSpan commandTimeout)
167167
{
168-
if (service.DriverServicePath == null || string.IsNullOrEmpty(options.BinaryLocation))
168+
if (service.DriverServicePath == null)
169169
{
170170
DriverFinder finder = new DriverFinder(options);
171171
string fullServicePath = finder.GetDriverPath();
172172
service.DriverServicePath = Path.GetDirectoryName(fullServicePath);
173173
service.DriverServiceExecutableName = Path.GetFileName(fullServicePath);
174-
175-
if (finder.HasBrowserPath())
176-
{
177-
options.BinaryLocation = finder.GetBrowserPath();
178-
options.BrowserVersion = null;
179-
}
180174
}
181175

182176
service.Start();

0 commit comments

Comments
 (0)