Toniiiio / SteveAI

0 stars 0 forks source link

Cookies #34

Open Toniiiio opened 3 years ago

Toniiiio commented 3 years ago

image https://www.daikin.com/careers/index.html

ses$executeScript("return document.cookie") ""

doesnt show cookies

Toniiiio commented 2 years ago

cookie_xp <- "//button[contains(text(), 'Zustimmen')]" buttons <- ses$findElements(xpath = cookie_xp) for(nr in seq(buttons)){ tryCatch(buttons[[nr]]$click(), error = function(e) message(e)) } ses$takeScreenshot()

Example: clear cookies and go to "68 74 74 70 73 3a 2f 2f 6a 6f 62 73 2e 6b 61 75 66 6c 61 6e 64 2e 63 6f 6d 2f 44 65 75 74 73 63 68 6c 61 6e 64 2f 3f 6c 6f 63 61 6c 65 3d 64 65 5f 44 45"