Hello, I am trying to access a password-protected account with {chromote}, and I'm having trouble capturing the cookies. I'm following along with the {chromote} README, which says to access the account you want in Chrome, open devtools on devtools in Chrome, then run some Javascript to capture the cookies as a string.
A regex (sort of):
- Navigate to https://rstudio.com (As an example)
- Press Ctrl/Cmd + Shift + I to open Chrome devtools
- While on the undocked devtools window, press Ctrl/Cmd + Shift + I again
- Run this code in the devtools terminal:
var cookies = await Main.sendOverProtocol('Network.getCookies', {})
JSON.stringify(cookies)
When I do this, it gives me the error: Uncaught TypeError: Main.sendOverProtocol is not a function
FWIW here are my two devtools windows. I know virtually nothing about web dev/web design, so I don't know if any of the other errors are related.
Any help or guidance is greatly appreciated! I'm not even sure what questions to ask.