I use phpunit extension phpunit-selenium to run a test on my website using selenium mesh, but whenever I try to run tests in Internet Explorer, I get an error message:
Cannot add cookie to page (WARNING. Server did not provide any stacktrace)
The problem seems to be related to the phpunit-selenium attempt, but unable to set the cookie "PHPUNIT_SELENIUM_TEST_ID".
I found sample code to set and delete cookies from here , and the interesting thing is, the code from the link runs just fine on IE, displaying the contents of the cookie, but when I try to add cookies to my site, it fails.
I tried possible solutions, such as getting a website before trying to set a cookie, and turning off Protected Mode.
Is there another security setting in IE or something that I am missing?
source share