Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SafariDriverCommandExecutor"/> class.
        /// </summary>
        /// <param name="options">The <see cref="SafariOptions"/> used to create the command executor.</param>
        public SafariDriverCommandExecutor(SafariOptions options)
        {
            this.server = new SafariDriverServer(options.Port);
            if (string.IsNullOrEmpty(options.SafariLocation))
            {
                this.safariExecutableLocation = GetDefaultSafariLocation();
            }
            else
            {
                this.safariExecutableLocation = options.SafariLocation;
            }

            this.extension = new SafariDriverExtension(options.CustomExtensionPath, options.SkipExtensionInstallation);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="SafariDriverCommandExecutor"/> class.
        /// </summary>
        /// <param name="options">The <see cref="SafariOptions"/> used to create the command executor.</param>
        public SafariDriverCommandExecutor(SafariOptions options)
        {
            this.server = new SafariDriverServer(options.Port);
            if (string.IsNullOrEmpty(options.SafariLocation))
            {
                this.safariExecutableLocation = GetDefaultSafariLocation();
            }
            else
            {
                this.safariExecutableLocation = options.SafariLocation;
            }

            this.extension = new SafariDriverExtension(options.CustomExtensionPath, options.SkipExtensionInstallation);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="SafariDriverCommandExecutor"/> class.
 /// </summary>
 /// <param name="port">The port on which the executor communicates with the extension.</param>
 /// <param name="safariLocation">The location of the Safari executable</param>
 public SafariDriverCommandExecutor(int port, string safariLocation)
 {
     this.server = new SafariDriverServer(port);
     this.safariExecutableLocation = safariLocation;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SafariDriverCommandExecutor"/> class.
 /// </summary>
 /// <param name="options">The <see cref="SafariOptions"/> used to create the command executor.</param>
 public SafariDriverCommandExecutor(SafariOptions options)
 {
     this.server = new SafariDriverServer(options);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SafariDriverCommandExecutor"/> class.
 /// </summary>
 /// <param name="options">The <see cref="SafariOptions"/> used to create the command executor.</param>
 public SafariDriverCommandExecutor(SafariOptions options)
 {
     this.server = new SafariDriverServer(options);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SafariDriverCommandExecutor"/> class.
 /// </summary>
 /// <param name="port">The port on which the executor communicates with the extension.</param>
 /// <param name="safariLocation">The location of the Safari executable</param>
 public SafariDriverCommandExecutor(int port, string safariLocation)
 {
     this.server = new SafariDriverServer(port);
     this.safariExecutableLocation = safariLocation;
 }