예제 #1
0
        private static ICapabilities ConvertOptionsToCapabilities(SafariOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException("options", "options must not be null");
            }

            return(options.ToCapabilities());
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SafariDriver"/> class using the specified <see cref="SafariOptions"/>.
 /// </summary>
 /// <param name="options">The <see cref="SafariOptions"/> to use for this <see cref="SafariDriver"/> instance.</param>
 public SafariDriver(SafariOptions options)
     : base(new SafariDriverCommandExecutor(options), options.ToCapabilities())
 {
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SafariDriver"/> class using the specified <see cref="SafariOptions"/>.
 /// </summary>
 /// <param name="options">The <see cref="SafariOptions"/> to use for this <see cref="SafariDriver"/> instance.</param>
 public SafariDriver(SafariOptions options)
     : base(new SafariDriverCommandExecutor(options), options.ToCapabilities())
 {
 }
예제 #4
0
        private static ICapabilities ConvertOptionsToCapabilities(SafariOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException("options", "options must not be null");
            }

            return options.ToCapabilities();
        }