OpenQA.Selenium.IE.InternetExplorerDriverService.CreateDefaultService C# (CSharp) Method

CreateDefaultService() public static method

Creates a default instance of the InternetExplorerDriverService.
public static CreateDefaultService ( ) : InternetExplorerDriverService
return InternetExplorerDriverService
        public static InternetExplorerDriverService CreateDefaultService()
        {
            string serviceDirectory = DriverService.FindDriverServiceExecutable(InternetExplorerDriverServiceFileName, InternetExplorerDriverDownloadUrl);
            return CreateDefaultService(serviceDirectory);
        }

Same methods

InternetExplorerDriverService::CreateDefaultService ( string driverPath ) : InternetExplorerDriverService

Usage Example

 /// <summary>
 /// Initializes a new instance of the <see cref="InternetExplorerDriver"/> class with the desired
 /// options.
 /// </summary>
 /// <param name="options">The <see cref="InternetExplorerOptions"/> used to initialize the driver.</param>
 public InternetExplorerDriver(InternetExplorerOptions options)
     : this(InternetExplorerDriverService.CreateDefaultService(), options)
 {
 }
All Usage Examples Of OpenQA.Selenium.IE.InternetExplorerDriverService::CreateDefaultService