Пример #1
0
        /// <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);
        }
Пример #3
0
 /// <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;
 }
Пример #4
0
 /// <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);
 }
Пример #5
0
 /// <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;
 }
Пример #6
0
 /// <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;
 }
Пример #7
0
 /// <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);
 }
Пример #8
0
 /// <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;
 }
Пример #9
0
 /// <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;
 }
Пример #10
0
 /// <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;
 }