/// <summary> /// Initializes a new instance of the <see cref="OperaDriver"/> class using the specified options. /// </summary> /// <param name="options">The <see cref="OperaOptions"/> to be used with the Opera driver.</param> public OperaDriver(OperaOptions options) : this(OperaDriverService.CreateDefaultService(), options, RemoteWebDriver.DefaultCommandTimeout) { }
/// <summary> /// Initializes a new instance of the <see cref="OperaDriver"/> class using the specified /// <see cref="OperaDriverService"/> and options. /// </summary> /// <param name="service">The <see cref="OperaDriverService"/> to use.</param> /// <param name="options">The <see cref="OperaOptions"/> used to initialize the driver.</param> public OperaDriver(OperaDriverService service, OperaOptions options) : this(service, options, RemoteWebDriver.DefaultCommandTimeout) { }
/// <summary> /// Initializes a new instance of the <see cref="OperaDriver"/> class using the specified <see cref="OperaDriverService"/>. /// </summary> /// <param name="service">The <see cref="OperaDriverService"/> to use.</param> /// <param name="options">The <see cref="OperaOptions"/> to be used with the Opera driver.</param> /// <param name="commandTimeout">The maximum amount of time to wait for each command.</param> public OperaDriver(OperaDriverService service, OperaOptions options, TimeSpan commandTimeout) : base(new DriverServiceCommandExecutor(service, commandTimeout), ConvertOptionsToCapabilities(options)) { }
/// <summary> /// Initializes a new instance of the <see cref="OperaDriver"/> class using the specified path /// to the directory containing OperaDriver.exe, options, and command timeout. /// </summary> /// <param name="operaDriverDirectory">The full path to the directory containing OperaDriver.exe.</param> /// <param name="options">The <see cref="OperaOptions"/> to be used with the Opera driver.</param> /// <param name="commandTimeout">The maximum amount of time to wait for each command.</param> public OperaDriver(string operaDriverDirectory, OperaOptions options, TimeSpan commandTimeout) : this(OperaDriverService.CreateDefaultService(operaDriverDirectory), options, commandTimeout) { }
public static OperaDriverService CreateDefaultService(string driverPath) { return(OperaDriverService.CreateDefaultService(driverPath, "operadriver.exe")); }
public static OperaDriverService CreateDefaultService() { string driverPath = DriverService.FindDriverServiceExecutable("operadriver.exe", OperaDriverService.OperaDriverDownloadUrl); return(OperaDriverService.CreateDefaultService(driverPath)); }