Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Protractor with Existing Cookies #1706

Closed
Kaleb8812 opened this issue Jan 9, 2015 · 1 comment
Closed

Running Protractor with Existing Cookies #1706

Kaleb8812 opened this issue Jan 9, 2015 · 1 comment

Comments

@Kaleb8812
Copy link

I am currently testing a website that requires you to sign in through an authentication page. However, this page is not written in Angular so protractor gives me the generic "Error: Angular could not be found on the page" message. If I am using chrome regularly, I can collect the cookies from the login page and thus I can close the tab I am logged in to and reopen it without having to log in again. Finally my question: Is there a way to make the new chrome window Protractor opens carry cookies from my earlier chrome sessions? Or is there someting I can add to the Protractor code files that would automatically store my cookies? Thanks!

@hankduan
Copy link
Contributor

hankduan commented Jan 9, 2015

See http://stackoverflow.com/questions/27234785/how-to-handle-basic-authentication-with-protractor/27388698#27388698 if you're dealing with basic authentication.

If it's a login page, there are also many threads covering this:
https://github.com/angular/protractor/blob/master/docs/faq.md
#51
http://stackoverflow.com/questions/26536933/test-login-with-protractor-on-a-non-angular-page

Please post follow up questions on stackoverflow, as github is for issues and feature requests. Thanks!

@hankduan hankduan closed this as completed Jan 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants