Page doesn't load as expected
See original GitHub issueBug
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:
Desired behavior:
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:
- Created 5 years ago
- Reactions:2
- Comments:13 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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 errori’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 .