public static CreateDefaultService ( ) : |
||
return |
public static ChromeDriverService CreateDefaultService()
{
Assembly executingAssembly = Assembly.GetExecutingAssembly();
string currentDirectory = Path.GetDirectoryName(executingAssembly.Location);
// If we're shadow copying, fiddle with
// the codebase instead
if (AppDomain.CurrentDomain.ShadowCopyFiles)
{
Uri uri = new Uri(executingAssembly.CodeBase);
currentDirectory = Path.GetDirectoryName(uri.LocalPath);
}
return CreateDefaultService(currentDirectory);
}
ChromeDriverService::CreateDefaultService ( string driverPath ) : |
/// <summary> /// Initializes a new instance of the <see cref="ChromeDriver"/> class using the specified options. /// </summary> /// <param name="options">The <see cref="ChromeOptions"/> to be used with the Chrome driver.</param> public ChromeDriver(ChromeOptions options) : this(ChromeDriverService.CreateDefaultService(), options, RemoteWebDriver.DefaultCommandTimeout) { }