/// <summary> /// Initializes a new instance of the <see cref="WiniumDriver"/> class using the specified <see cref="WiniumDriverService"/>. /// </summary> /// <param name="service">The <see cref="WiniumDriverService"/> to use.</param> /// <param name="options">The <see cref="IWiniumOptions"/> object to be used with the Winium driver.</param> /// <param name="commandTimeout">The maximum amount of time to wait for each command.</param> public WiniumDriver(WiniumDriverService service, IWiniumOptions options, TimeSpan commandTimeout) : base(new WiniumDriverCommandExecutor(service, commandTimeout), options.ToCapabilities()) { this.InitWiniumDriverCommands(); }
/// <summary> /// Initializes a new instance of the <see cref="WiniumDriver"/> class using the specified path /// to the directory containing Winium.Driver executible file, options, and command timeout. /// </summary> /// <param name="winiumDriverDirectory"> /// The full path to the directory containing Winium.Driver executible file. /// </param> /// <param name="options"> /// The <see cref="DesktopOptions"/> to be used with the Winium driver. /// </param> /// <param name="commandTimeout"> /// The maximum amount of time to wait for each command. /// </param> public WiniumDriver(string winiumDriverDirectory, IWiniumOptions options, TimeSpan commandTimeout) : this(CreateDefaultService(options.GetType(), winiumDriverDirectory), options, commandTimeout) { }
/// <summary> /// Initializes a new instance of the <see cref="WiniumDriver"/> class using the specified /// <see cref="WiniumDriverService"/> and options. /// </summary> /// <param name="service">The <see cref="WiniumDriverService"/> to use.</param> /// <param name="options">The <see cref="DesktopOptions"/> used to initialize the driver.</param> public WiniumDriver(WiniumDriverService service, IWiniumOptions options) : this(service, options, RemoteWebDriver.DefaultCommandTimeout) { }
/// <summary> /// Initializes a new instance of the <see cref="WiniumDriver"/> class using the specified remote address, desired capabilities, and command timeout. /// </summary> /// <param name="remoteAddress">URI containing the address of the WiniumDriver remote server (e.g. http://127.0.0.1:4444/wd/hub).</param> /// <param name="options">The <see cref="IWiniumOptions"/> object to be used with the Winium driver.</param> /// <param name="commandTimeout">The maximum amount of time to wait for each command.</param> public WiniumDriver(Uri remoteAddress, IWiniumOptions options, TimeSpan commandTimeout) : base(CommandExecutorFactory.GetHttpCommandExecutor(remoteAddress, commandTimeout), options.ToCapabilities()) { this.InitWiniumDriverCommands(); }
/// <summary> /// Initializes a new instance of the <see cref="WiniumDriver"/> class using the specified path /// to the directory containing Winium.Driver executible file and options. /// </summary> /// <param name="winiumDriverDirectory"> /// The full path to the directory containing Winium.Driver executible. /// </param> /// <param name="options"> /// The <see cref="DesktopOptions"/> to be used with the Winium driver. /// </param> public WiniumDriver(string winiumDriverDirectory, IWiniumOptions options) : this(winiumDriverDirectory, options, RemoteWebDriver.DefaultCommandTimeout) { }
/// <summary> /// Initializes a new instance of the <see cref="WiniumDriver"/> class using the specified remote address and options. /// </summary> /// <param name="remoteAddress">URI containing the address of the WiniumDriver remote server (e.g. http://127.0.0.1:4444/wd/hub).</param> /// <param name="options">The <see cref="IWiniumOptions"/> object to be used with the Winium driver.</param> public WiniumDriver(Uri remoteAddress, IWiniumOptions options) : this(remoteAddress, options, RemoteWebDriver.DefaultCommandTimeout) { }