예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SafariDriver"/> class using the specified <see cref="SafariDriverService"/>.
 /// </summary>
 /// <param name="service">The <see cref="SafariDriverService"/> to use.</param>
 /// <param name="options">The <see cref="SafariOptions"/> to be used with the Safari driver.</param>
 /// <param name="commandTimeout">The maximum amount of time to wait for each command.</param>
 public SafariDriver(SafariDriverService service, SafariOptions options, TimeSpan commandTimeout)
     : base(new DriverServiceCommandExecutor(service, commandTimeout), ConvertOptionsToCapabilities(options))
 {
     this.AddCustomSafariCommand(AttachDebuggerCommand, HttpCommandInfo.PostCommand, "/session/{sessionId}/apple/attach_debugger");
     this.AddCustomSafariCommand(GetPermissionsCommand, HttpCommandInfo.GetCommand, "/session/{sessionId}/apple/permissions");
     this.AddCustomSafariCommand(SetPermissionsCommand, HttpCommandInfo.PostCommand, "/session/{sessionId}/apple/permissions");
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SafariDriver"/> class using the specified driver service.
 /// </summary>
 /// <param name="service">The <see cref="SafariDriverService"/> used to initialize the driver.</param>
 public SafariDriver(SafariDriverService service)
     : this(service, new SafariOptions())
 {
 }
예제 #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)
     : this(SafariDriverService.CreateDefaultService(), options)
 {
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SafariDriver"/> class using the specified <see cref="SafariDriverService"/>.
 /// </summary>
 /// <param name="service">The <see cref="SafariDriverService"/> to use.</param>
 /// <param name="options">The <see cref="SafariOptions"/> to be used with the Safari driver.</param>
 /// <param name="commandTimeout">The maximum amount of time to wait for each command.</param>
 public SafariDriver(SafariDriverService service, SafariOptions options, TimeSpan commandTimeout)
     : base(new DriverServiceCommandExecutor(service, commandTimeout), ConvertOptionsToCapabilities(options))
 {
 }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SafariDriver"/> class using the specified
 /// <see cref="SafariDriverService"/> and options.
 /// </summary>
 /// <param name="service">The <see cref="SafariDriverService"/> to use.</param>
 /// <param name="options">The <see cref="SafariOptions"/> used to initialize the driver.</param>
 public SafariDriver(SafariDriverService service, SafariOptions options)
     : this(service, options, RemoteWebDriver.DefaultCommandTimeout)
 {
 }
예제 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SafariDriver"/> class using the specified path
 /// to the directory containing safaridriver, options, and command timeout.
 /// </summary>
 /// <param name="safariDriverDirectory">The full path to the directory containing SafariDriver executable.</param>
 /// <param name="options">The <see cref="SafariOptions"/> to be used with the Safari driver.</param>
 /// <param name="commandTimeout">The maximum amount of time to wait for each command.</param>
 public SafariDriver(string safariDriverDirectory, SafariOptions options, TimeSpan commandTimeout)
     : this(SafariDriverService.CreateDefaultService(safariDriverDirectory), options, commandTimeout)
 {
 }
예제 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SafariDriver"/> class using the specified driver service.
 /// </summary>
 /// <param name="service">The <see cref="SafariDriverService"/> used to initialize the driver.</param>
 public SafariDriver(SafariDriverService service)
     : this(service, new SafariOptions())
 {
 }
예제 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SafariDriver"/> class using the specified <see cref="SafariDriverService"/>.
 /// </summary>
 /// <param name="service">The <see cref="SafariDriverService"/> to use.</param>
 /// <param name="options">The <see cref="SafariOptions"/> to be used with the Safari driver.</param>
 /// <param name="commandTimeout">The maximum amount of time to wait for each command.</param>
 public SafariDriver(SafariDriverService service, SafariOptions options, TimeSpan commandTimeout)
     : base(new DriverServiceCommandExecutor(service, commandTimeout), ConvertOptionsToCapabilities(options))
 {
 }
예제 #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SafariDriver"/> class using the specified
 /// <see cref="SafariDriverService"/> and options.
 /// </summary>
 /// <param name="service">The <see cref="SafariDriverService"/> to use.</param>
 /// <param name="options">The <see cref="SafariOptions"/> used to initialize the driver.</param>
 public SafariDriver(SafariDriverService service, SafariOptions options)
     : this(service, options, RemoteWebDriver.DefaultCommandTimeout)
 {
 }