Closed djom202 closed 7 years ago
My knowledge of cucumber is a little weak but from this it appears that you are adding a cookie before navigating to a page. There's been some chatter on the selenium project about this https://github.com/seleniumhq/selenium-google-code-issue-archive/issues/1953 and the response there as far as I can see is a wont fix.
I do think this makes sense because there's no "domain" to set the cookie on before you've loaded your page. You can load another page on your domain first, set the cookie there, and then navigate to your dashboard page if you have to test this functionality.
I'm going to close this because it is a question of selenium behavior and not an issue with Protractor itself.
Hi there!
I'm using cucumber with protractor and in my test I need to create a cookie to do not login and go to dashboard directly. I'm have been try to create a cookie with this command:
The test ran without problems, all is successful but when I go to the browser never was created the cookie and I stay in the login page.
Also when I try to get the cookie with browser manager, I got null:
My cucumber Feature:
And my steps:
Bug report