Hello. I’m getting exception thrown from Selenium server when trying to add cookie.
Here is part of the log:
10:19:27.731 INFO - Executing: [get: http://localhost/]) 10:19:27.874 INFO - Done: [get: http://localhost/] 10:19:32.881 INFO - Executing: [add cookie: selenium_cookie=1; path=/]) 10:19:32.895 WARN - Exception thrown org.openqa.selenium.WebDriverException: <unknown>: Failed to set the 'cookie' property on 'Document': Cookies are disabled inside 'data:' URLs. (Session info: chrome=53.0.2785.101) (Driver info: chromedriver=2.23.409687 (c46e862757edc04c06b1bd88724d15a5807b84d1),platform=Linux 3.13.0-91-generic x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 12 milliseconds Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03' System info: host: 'box1158.localdomain', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-91-generic', java.version: '1.8.0_102' Driver info: org.openqa.selenium.chrome.ChromeDriver
It’s says that Cookies are disabled inside 'data:' URLs
, but before, it’s successfully landing on http://localhost/
URL, so it’s not data:
URL currently in the browser.
Any solutions to fix this error?
I’m using Selenium Standalone Server v. 2.53.1 and pre-installed Chrome v. 53