private static ICapabilities ConvertOptionsToCapabilities(OperaOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException("options", "options must not be null");
     }
     return(options.ToCapabilities());
 }
Exemple #2
0
        private static ICapabilities ConvertOptionsToCapabilities(OperaOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException("options", "options must not be null");
            }

            return options.ToCapabilities();
        }
Exemple #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), options.ToCapabilities())
 {
 }
Exemple #4
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), options.ToCapabilities())
 {
 }