Execute() защищенный Метод

Executes a command with this driver .
protected Execute ( DriverCommand driverCommandToExecute, object>.Dictionary parameters ) : OpenQA.Selenium.Remote.Response
driverCommandToExecute DriverCommand A value representing the command to execute.
parameters object>.Dictionary A containing the names and values of the parameters of the command.
Результат OpenQA.Selenium.Remote.Response
Пример #1
0
            /// <summary>
            /// Method for creating a cookie in the browser
            /// </summary>
            /// <param name="cookie"><see cref="Cookie"/> that represents a cookie in the browser</param>
            public void AddCookie(Cookie cookie)
            {
                Dictionary <string, object> parameters = new Dictionary <string, object>();

                parameters.Add("cookie", cookie);
                driver.Execute(DriverCommand.AddCookie, parameters);
            }
Пример #2
0
            /// <summary>
            /// Move to a different frame using its index
            /// </summary>
            /// <param name="frameIndex">The index of the </param>
            /// <returns>A WebDriver instance that is currently in use</returns>
            public IWebDriver Frame(int frameIndex)
            {
                Dictionary <string, object> parameters = new Dictionary <string, object>();

                parameters.Add("id", frameIndex);
                driver.Execute(DriverCommand.SwitchToFrame, parameters);
                return(driver);
            }
Пример #3
0
 /// <summary>
 /// Move the browser back
 /// </summary>
 public void Back()
 {
     driver.Execute(DriverCommand.GoBack, null);
 }