protected override object HandleSeleneseCommand(OpenQA.Selenium.IWebDriver driver, string name, string ignored) { driver.Manage().DeleteCookieNamed(name); return null; }
/// <summary> /// Handles the command. /// </summary> /// <param name="driver">The driver used to execute the command.</param> /// <param name="locator">The first parameter to the command.</param> /// <param name="value">The second parameter to the command.</param> /// <returns>The result of the command.</returns> protected override object HandleSeleneseCommand(OpenQA.Selenium.IWebDriver driver, string locator, string value) { return driver.Manage().Cookies.GetCookieNamed(locator) == null ? false : true; }
/// <summary> /// Handles the command. /// </summary> /// <param name="driver">The driver used to execute the command.</param> /// <param name="locator">The first parameter to the command.</param> /// <param name="value">The second parameter to the command.</param> /// <returns>The result of the command.</returns> protected override object HandleSeleneseCommand(OpenQA.Selenium.IWebDriver driver, string locator, string value) { driver.Manage().DeleteCookieNamed(locator); return null; }
protected override object HandleSeleneseCommand(OpenQA.Selenium.IWebDriver driver, string name, string ignored) { return driver.Manage().GetCookieNamed(name) == null ? false : true; }