Ability to prevent/stop loading 'Page load'
See original GitHub issueWell I try to stop to load the xhr and continue my test without page load time out error but not working and not even stop the xhr loading. Please guide if im using in correct way or it is actual bug.
cy.window((win) => {
win.stop()
})
Try with black list as well in cypress.json file but did not work
"blacklistHosts": [
"https://www.deepl.com/PHP/backend/docTrans.php?request_type=jsonrpc&il=en"
]
this is xhr I want to stop loading “https://www.deepl.com/PHP/backend/docTrans.php?request_type=jsonrpc&il=en”
Reason why I need this because these is 1 xhr that will load after 5 seconds and this is never ending process in my application under test.
cy version 4.4.0 OS windows 10
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:33 (6 by maintainers)
Top Results From Across the Web
Ability to prevent/stop loading 'Page load' in Cypress when ...
In my Cypress test, I need to test a link which downloads a .txt, .xlsx and a .zip file when clicked, but when...
Read more >visit - Cypress Documentation
Prevent requests before a remote page initially loads. One common scenario Cypress supports is visiting a remote page and also preventing any Ajax...
Read more >Stopping a page element from loading - Google Groups
I have a site I go to frequently that has a massive JavaScript menu that loads up in some DIV content. It seriously...
Read more >How to show Page Loading div until the page has finished ...
When document.readyState changes, readystatechange event fires and our function executes. If the document is not yet loaded then the body should ...
Read more >Window.stop() - Web APIs - MDN Web Docs
The window.stop() stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
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
I found a work around here - #14857
Thanks to Sarja 👍
Clicking this download link works fine, but I can’t stop cypress from waiting for a nonexistant page to load, which prevents the rest of the test from running.