getAllCookies {seleniumPipes} | R Documentation |
Get all current domain cookies
Description
getAllCookies
Get all the cookies for the current domain.
Usage
getAllCookies(remDr, ...)
Arguments
remDr |
An object of class "rDriver". A remote driver object see |
... |
Additonal function arguments - Currently passes the |
Value
A list of all the cookies on the current domain are returned. These cookies
have values as stipulated by the arguments given in addCookie
.
See Also
Other cookies functions: addCookie
,
deleteAllCookies
,
deleteCookie
, getNamedCookie
Examples
## Not run:
# assume a server is running at default location
remDr <- remoteDr()
remDr %>% go("https://www.google.com/ncr") %>%
getTitle()
# get the cookies
remDr %>% getCookie()
# get a named cookie
remDr %>% getCookie("NID")
# add our own cookie
remDr %>% addCookie(name = "myCookie", value = "12")
# check its value
remDr %>% getCookie("myCookie")
# delete our cookie
remDr %>% deleteCookie("myCookie")
# check its deleted
remDr %>% getCookie("myCookie")
# delete all cookies
remDr %>% getCookie()
remDr %>% deleteAllCookies() %>%
getCookie()
remDr %>% deleteSession()
## End(Not run)
[Package seleniumPipes version 0.3.7 Index]