/// <summary> /// Initializes a new instance of the <see cref="WebDriverCommandProcessor"/> class. /// </summary> /// <param name="baseUrl">The base URL of the Selenium server.</param> /// <param name="baseDriver">The IWebDriver object used for executing commands.</param> public WebDriverCommandProcessor(Uri baseUrl, IWebDriver baseDriver) { if (baseUrl == null) { throw new ArgumentNullException(nameof(baseUrl), "baseUrl cannot be null"); } this.driver = baseDriver; this.baseUrl = baseUrl; this.mutator = new CompoundMutator(baseUrl.ToString()); this.timer = new CommandTimer(30000); this.alertOverride = new AlertOverride(baseDriver); }
/// <summary> /// Initializes a new instance of the <see cref="WebDriverCommandProcessor"/> class. /// </summary> /// <param name="baseUrl">The base URL of the Selenium server.</param> /// <param name="baseDriver">The IWebDriver object used for executing commands.</param> public WebDriverCommandProcessor(Uri baseUrl, IWebDriver baseDriver) { if (baseUrl == null) { throw new ArgumentNullException("baseUrl", "baseUrl cannot be null"); } this.driver = baseDriver; this.baseUrl = baseUrl; this.mutator = new CompoundMutator(baseUrl.ToString()); this.timer = new CommandTimer(30000); this.alertOverride = new AlertOverride(baseDriver); }
/// <summary> /// Initializes a new instance of the <see cref="WaitForCondition"/> class. /// </summary> /// <param name="mutator">An <see cref="IScriptMutator"/> used to modify the script /// into something WebDriver can parse.</param> public WaitForCondition(IScriptMutator mutator) { this.mutator = mutator; }
/// <summary> /// Adds a mutator to the collection /// </summary> /// <param name="mutator">The <see cref="IScriptMutator"/> to add.</param> internal void AddMutator(IScriptMutator mutator) { this.mutators.Add(mutator); }
/// <summary> /// Initializes a new instance of the RunScript class. /// </summary> /// <param name="mutator">The <see cref="IScriptMutator"/> object to modify the /// script so that WebDriver can use it.</param> public RunScript(IScriptMutator mutator) { this.mutator = mutator; }
/// <summary> /// Initializes a new instance of the <see cref="GetEval"/> class. /// </summary> /// <param name="mutator">The <see cref="IScriptMutator"/> used to replace terms in the script being run.</param> public GetEval(IScriptMutator mutator) { this.mutator = mutator; }
/// <summary> /// Adds a mutator to the collection /// </summary> /// <param name="mutator">The <see cref="IScriptMutator"/> to add.</param> internal void AddMutator(IScriptMutator mutator) { this.mutators.Add(mutator); }
/// <summary> /// Initializes a new instance of the <see cref="GetEval"/> class. /// </summary> /// <param name="mutator">The <see cref="IScriptMutator"/> used to replace terms in the script being run.</param> public GetEval(IScriptMutator mutator) { this.mutator = mutator; }
/// <summary> /// Initializes a new instance of the <see cref="WaitForCondition"/> class. /// </summary> /// <param name="mutator">An <see cref="IScriptMutator"/> used to modify the script /// into something WebDriver can parse.</param> public WaitForCondition(IScriptMutator mutator) { this.mutator = mutator; }
/// <summary> /// Initializes a new instance of the RunScript class. /// </summary> /// <param name="mutator">The <see cref="IScriptMutator"/> object to modify the /// script so that WebDriver can use it.</param> public RunScript(IScriptMutator mutator) { this.mutator = mutator; }