It seems to me that the root of the issue here was more the js evaluation
than the cookies, although of course both were required. That was an
incredibly informative thread. Thanks for sharing, and for the SO
responses.
We have another answer by email from John Harrison (the rselenium package maintainer), who managed to identify the exact name of the cookie we need to accept. I’ve added it to the stackoverflow post.