question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Page doesn't load as expected

See original GitHub issue

Bug

I wanna test ad unit’s using cypress. But when i open this url in cypress - https://www.tripsavvy.com/when-should-you-get-your-luggage-wrapped-4146609?kw=TEST4534121759 - ad unit’s load broken

Current behavior:

screen shot 2018-04-03 at 9 54 18 am

Desired behavior:

screen shot 2018-04-03 at 9 54 48 am

How to reproduce:

Just open this url using cypress cy.visit(“https://www.tripsavvy.com/when-should-you-get-your-luggage-wrapped-4146609?kw=TEST4534121759”);

Test code:

'use strict';

describe('FIU', () => {

  it('FIU', () => {
  	cy.visit("https://www.tripsavvy.com/when-should-you-get-your-luggage-wrapped-4146609?kw=TEST4534121759");
  });
});

Additional Info (images, stack traces, etc)

I was trying to set “chromeWebSecurity”: false , but it didn’t help

Thank you!

  • Operating System: Mac Os Hight Sierra 10.13.3
  • Cypress Version: 2.1.0
  • Browser Version: Chrome 65.0.3325.181, see same issue on Electron 59, and Canary 67

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
kucebcommented, Nov 6, 2019

@maxim94plyasunov It appears your ad is using “frame busting” to get access to the root document’s page from the iframe and set the height/width of itself. By default Cypress blocks this from happening so the app can’t mess up Cypress’s Test Runner, which runs your app inside an iframe itself. There is an option to disable this by setting modifyObstructiveCode=false in cypress.json, but that still might not fix your problem. I tried to display your webpage from an iframe in Chrome, and it didn’t work, giving me this error

Refused to display 'https://www.tripsavvy.com/when-should-you-get-your-luggage-wrapped-4146609?kw=TEST4534121759' in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self' *.specless.io *.specless.tech http://*.seo.aws.about.com https://*.seo.aws.about.com www.tripsavvy.com *.qa.aws.tripsavvy.com atlas.tripsavvy.com atlas.local.tripsavvy.com".
1reaction
anuragipankajcommented, Nov 22, 2018

i’am facing the same issue , and ADS are not showing up while running it through cypress ,any fixes yet? modifyObstructiveCode=false and 'chromeWebSecurity": false are not working .

Read more comments on GitHub >

github_iconTop Results From Across the Web

If Safari on Mac doesn't open a webpage or isn't working as ...
If Safari isn't working as you expect, one of these solutions might help. ... Open Safari again and try to load the page....
Read more >
Web pages aren't displaying properly in my browser ... - AskUON
It is particularly helpful if you have persistent problems with pages not loading as expected when using databases. These problems are often ...
Read more >
How to Fix Chrome Won't Load Pages Error - Technipages
Sometimes the Google Chrome web browser throws an error when trying to load a page. Follow these steps to troubleshoot and fix the...
Read more >
10 Reasons for Slow Website Loading (With Solutions)
Understand these 10 core reasons for slow website loading and learn how to resolve these issues & your traffic, revenue, and credibility.
Read more >
wait for complete page load does not work as expected in ...
It is not best practice to wait for the pages url to load in order to know if the page is loaded, because...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found