Description Usage Arguments Value See Also Examples
deleteAllCookies
Delete all the cookies that are currently visible.
1 | deleteAllCookies(remDr, ...)
|
remDr |
An object of class "rDriver". A remote driver object see |
... |
Additonal function arguments - Currently passes the |
invisible(remDr): An object of class "rDriver" is invisibly returned.
A remote driver object see remoteDr
. This allows for chaining from this function to
other functions that take such an object as an argument. See examples for further details.
Other cookies functions: addCookie
,
deleteCookie
, getAllCookies
,
getNamedCookie
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.