Package com.codeborne.selenide
Class CookieStore
java.lang.Object
com.codeborne.selenide.CookieStore
- All Implemented Interfaces:
Conditional<CookieStore>
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidadd(org.openqa.selenium.Cookie cookie) voidclear()Delete all the cookies for the current domain.voidDelete the named cookie from the current domain.driver()@Nullable org.openqa.selenium.CookieGet cookie with given name for the current domain.Set<org.openqa.selenium.Cookie>getAll()Get all the cookies for the current domain.object()intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.codeborne.selenide.Conditional
shouldHave, shouldHave, shouldNotHave, shouldNotHave
-
Method Details
-
driver
- Specified by:
driverin interfaceConditional<CookieStore>- Returns:
- current Driver (used to take screenshots etc. in case of test failure)
-
object
- Specified by:
objectin interfaceConditional<CookieStore>- Returns:
- object under test
-
clear
public void clear()Delete all the cookies for the current domain.- See Also:
-
WebDriver.Options.deleteAllCookies()
-
delete
Delete the named cookie from the current domain.- See Also:
-
WebDriver.Options.deleteCookieNamed(String)
-
getAll
Get all the cookies for the current domain.- See Also:
-
WebDriver.Options.getCookies()
-
get
Get cookie with given name for the current domain.- See Also:
-
WebDriver.Options.getCookies()
-
add
-
add
public void add(org.openqa.selenium.Cookie cookie) -
size
public int size()
-