Improve navigation
See original GitHub issueNavigation is hard. Make sure the following navigation scenarios work properly:
page.navigate('not-a-url')
should returnfalse
page.navigate('https://expired.badssl.com/')
should returnfalse
page.navigate('http://example.com/non-existing-page')
should returnfalse
page.navigate('http://example.com')
with no internet should returnfalse
page.navigate('data:text/html,hello')
should returntrue
- Page’s navigation via inner javascript’s
window.location.href = 'http://example.com'
should be reported to puppeteer, probably via theNavigated
event.
All of this should be also applicable to frame navigation in #4
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
6 Easy Ways To Improve Your Site's Navigation
Keep it consistent. · Divide categories clearly. · Make all navigation elements clickable links. · Use accurate navigation titles. · Ensure every ...
Read more >8 Innovative Ways to Optimize Your Website Navigation
1. Optimize Your Mobile Website's Navigation · 2. Replace the Drop-Down Menus in Your Website Navigation · 3. Make Site Search Frictionless ·...
Read more >How to Improve Your Website Navigation: 7 Essential Best ...
Handling Navigation in Large Websites · 1. Delegate to Different Departments · 2. Use Tools or Build Tools · 3. Use a Phased...
Read more >How to Improve Your Website's Navigation
Be sure your navigation is in the same location on each website page. Using the same design, colors, and font will help visitors...
Read more >10 Ways to Improve Navigation On Your Online Store
Are customers having a hard time finding what they need on your site? Improve navigation on your online store with these 10 types...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
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
it could return the fetch
response
object for the main resourceSo the issue with returning
true
/false
is that it’s hard to decide what is a success and what is a failure. For example, navigating to a 404 page might be a valid scenario, since a lot of websites have their own custom-made 404’s.How about:
This should address both @JoelEinbinder and @paulirish concerns. What do you guys think?