Ejemplo n.º 1
0
 /// <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)
 {
 }
Ejemplo n.º 2
0
 /// <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)
 {
 }
Ejemplo n.º 3
0
 /// <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))
 {
 }
Ejemplo n.º 4
0
 /// <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)
 {
 }
Ejemplo n.º 5
0
 /// <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))
 {
 }
Ejemplo n.º 6
0
 /// <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)
 {
 }
 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));
        }