ashbythorpe / selenider

Concise, Lazy and Reliable Wrapper for 'chromote' and 'selenium'
https://ashbythorpe.github.io/selenider/
Other
32 stars 2 forks source link

Get All Cookies with selenider #18

Closed awosoga closed 7 months ago

awosoga commented 7 months ago

Is there a selenider equivalent to RSelenium's getAllCookies()?

ashbythorpe commented 7 months ago

If you are using chromote (the default), you can use Storage.getCookies:

library(selenider)

session <- selenider_session()

session$driver$Storage$getCookies()

If you are using selenium, you can use SeleniumSession$get_cookies():

library(selenider)

session <- selenider_session("selenium")

session$driver$get_cookies()
awosoga commented 7 months ago

excellent, thank you!