protected Execute ( |
||
driverCommandToExecute | A |
|
parameters | object>.Dictionary | A |
return | OpenQA.Selenium.Remote.Response |
/// <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); }
/// <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); }
/// <summary> /// Move the browser back /// </summary> public void Back() { driver.Execute(DriverCommand.GoBack, null); }