コード例 #1
0
 protected override object HandleSeleneseCommand(OpenQA.Selenium.IWebDriver driver, string name, string ignored)
 {
     driver.Manage().DeleteCookieNamed(name);
     return null;
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
ファイル: IsCookiePresent.cs プロジェクト: hugs/selenium
 protected override object HandleSeleneseCommand(OpenQA.Selenium.IWebDriver driver, string name, string ignored)
 {
     return driver.Manage().GetCookieNamed(name) == null ? false : true;
 }