Add/set cookie

Hey Martin,

currently this is not possible (at least via the Cookies node), but:

  1. It would be a nice-to-have, so we will consider to add this in a future update.
  2. You can currently use a Java Snippet node to access the Selenium cookies API directly, to set cookies. E.g.:
    webDriver.manage().addCookie(new Cookie("key", "value"));
    
  3. Another option (as you’re talking specifically about keeping a session): Persist the browser’s user profile across relaunches. See here for details.

Does any of these help?

-Philipp

4 Likes