Getting invalid cookie domain error intermittently on the LT web -automation platform. Could you please help?

Getting invalid cookie domain error intermittently on the LT web -automation platform. Could you please help?

Hello Charity,

This is because the website is not loaded and when you are trying to set cookies to the website, you are getting this error. This is a standard error which comes when we try to set cookies to the document which is not currently browsing. Kindly use the following snippet:

 HashMap<String, Boolean> options = new HashMap<>();
      options.put("bypassWebsocket",true);
      capabilities.setCapability("networkConfig",options);

or

with Networks=true

Hope this helps!