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

cy.visit not working for "https://hinduism.stackexchange.com" #20233

Closed
amitguptagwl opened this issue Feb 17, 2022 · 4 comments
Closed

cy.visit not working for "https://hinduism.stackexchange.com" #20233

amitguptagwl opened this issue Feb 17, 2022 · 4 comments

Comments

@amitguptagwl
Copy link

Current behavior

When I'm writing some sample tests to visit "https://hinduism.stackexchange.com", Cypress attempt to run tests but reports no test to run eventually

hinduism
.

Desired behavior

cy.visit() should be able to visit any URL.

Test code to reproduce

describe('Simulate error in visiting site', () => {
    it('check Hinduism Stackexchange', () => {
        cy.visit(`https://hinduism.stackexchange.com`); 
        cy.get(".s-post-summary").invoke("length").should("be.greaterThan", 10); //not reaching here
    });
});

Cypress Version

9.5.0

Other

I've already tested with v8 and v9 but it is not working.

@BlueWinds
Copy link
Contributor

It looks like they have some framebusting code, which is breaking the application under test (https://hinduism.stackexchange.com/) out of Cypress' iframe.

You have a couple of options:

Hopefully that provides some helpful pointers.

@amitguptagwl
Copy link
Author

Yes, this is not the site I control. I just took this is an example during live demonstrate of how to use cypress. But it failed.

@sainthkh sainthkh added the stage: awaiting response Potential fix was proposed; awaiting response label Mar 4, 2022
@sainthkh
Copy link
Contributor

Closing because of the inactivity.

@sainthkh sainthkh removed the stage: awaiting response Potential fix was proposed; awaiting response label Mar 25, 2022
@baruchiro
Copy link

Hi, I found this answer:
https://stackapps.com/a/4963/102029

They said that embedding StackExchange website inside iframe is not allowed.

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

4 participants