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

the chrome browser loops without stop when launching with cypress #28251

Closed
Eyatester opened this issue Nov 6, 2023 · 7 comments
Closed

the chrome browser loops without stop when launching with cypress #28251

Eyatester opened this issue Nov 6, 2023 · 7 comments
Labels
type: duplicate This issue or pull request already exists

Comments

@Eyatester
Copy link

Eyatester commented Nov 6, 2023

Current behavior

chrome version 119 cypress version 12.8.1
when launching chrome the page crashes and the test does not run

Desired behavior

it should be launched correctly.
please can anyone help to resolve the problem .

Test code to reproduce

gfgf

Cypress Version

12.8.1 /13.3.1/13.4.0

Node version

V18.16.1

Operating System

windows 64

Debug Logs

No response

Other

No response

@alexsch01
Copy link
Contributor

This happened to me on pages such as http://httpforever.com in the past

@Eyatester
Copy link
Author

how you did fix it please. Any solutions?

@kr106
Copy link

kr106 commented Nov 8, 2023

I think I am seeing this problem too.

Chrome loops when I attempt to run my test suite against an HTTP site. The tests run headlessly for Chrome, but not in Chrome with the UI. I can run the tests in Electron OK.

This is reproducible with a simple template spec:
describe('template spec', () => {
it('passes', () => {
cy.visit('http://example.com/')
});
});

I posted about it in the Discord here, but no update yet:
https://discord.com/channels/755913899261296641/1169453901498548274/1169453901498548274

I have a project that uses an HTTP environment for test runs, so I hope that this is something that can be fixed in Cypress.

Cypress 12.7.0
Chrome 119
NodeJS 20.9.0

@Nahkag
Copy link

Nahkag commented Nov 9, 2023

Hello,
same issue for me

@mpoetzsch
Copy link

mpoetzsch commented Nov 21, 2023

seems to be the same problem like here: #25891

Summarization of the ticket:

the issue arises only with newer versions of Chrome (it worked for me with an older version). The problem likely started with the introduction of https://blog.chromium.org/2023/08/towards-https-by-default.html.

Workaround:
change the URL from https to http in the address bar of chrome and reload the web specs runner. After that, the tests run smoothly.

or a more permanent workaround is here:
https://superuser.com/questions/565409/how-to-stop-an-automatic-redirect-from-http-to-https-in-chrome/881431
(the solution with the most upvotes)

@Eyatester
Copy link
Author

the problem is resolved . Thank's a lot

@jennifer-shehane
Copy link
Member

Duplicate of #25891

@jennifer-shehane jennifer-shehane marked this as a duplicate of #25891 Nov 29, 2023
@jennifer-shehane jennifer-shehane added the type: duplicate This issue or pull request already exists label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

6 participants