Class InternetExplorerDriverService
Exposes the service provided by the native IEDriverServer executable.
public sealed class InternetExplorerDriverService : DriverService, ICommandServer, IDisposable
- Inheritance
-
InternetExplorerDriverService
- Implements
- Inherited Members
Properties
CommandLineArguments
Gets the command-line arguments for the driver service.
protected override string CommandLineArguments { get; }
Property Value
Host
Gets or sets the value of the host adapter on which the IEDriverServer should listen for connections.
public string Host { get; set; }
Property Value
LibraryExtractionPath
Gets or sets the path to which the supporting library of the IEDriverServer.exe is extracted. Defaults to the temp directory if this property is not set.
public string LibraryExtractionPath { get; set; }
Property Value
Remarks
The IEDriverServer.exe requires extraction of a supporting library to perform some of its functions. Setting This library is extracted to the temp directory if this property is not set. If the property is set, it must be set to a valid directory.
LogFile
Gets or sets the location of the log file written to by the IEDriverServer.
public string LogFile { get; set; }
Property Value
LoggingLevel
Gets or sets the logging level used by the IEDriverServer.
public InternetExplorerDriverLogLevel LoggingLevel { get; set; }
Property Value
WhitelistedIPAddresses
Gets or sets the comma-delimited list of IP addresses that are approved to connect to this instance of the IEDriverServer. Defaults to an empty string, which means only the local loopback address can connect.
public string WhitelistedIPAddresses { get; set; }
Property Value
Methods
CreateDefaultService()
Creates a default instance of the InternetExplorerDriverService.
public static InternetExplorerDriverService CreateDefaultService()
Returns
- InternetExplorerDriverService
A InternetExplorerDriverService that implements default settings.
CreateDefaultService(string)
Creates a default instance of the InternetExplorerDriverService using a specified path to the IEDriverServer executable.
public static InternetExplorerDriverService CreateDefaultService(string driverPath)
Parameters
driverPath
stringThe path to the executable or the directory containing the IEDriverServer executable.
Returns
- InternetExplorerDriverService
A InternetExplorerDriverService using a random port.
CreateDefaultService(string, string)
Creates a default instance of the InternetExplorerDriverService using a specified path to the IEDriverServer executable with the given name.
public static InternetExplorerDriverService CreateDefaultService(string driverPath, string driverExecutableFileName)
Parameters
driverPath
stringThe directory containing the IEDriverServer executable.
driverExecutableFileName
stringThe name of the IEDriverServer executable file.
Returns
- InternetExplorerDriverService
A InternetExplorerDriverService using a random port.
GetDefaultDriverOptions()
The browser options instance that corresponds to the driver service
protected override DriverOptions GetDefaultDriverOptions()