pod4g / hiper

🚀 A statistical analysis tool for performance testing
MIT License
2.7k stars 168 forks source link

Hash-only navigation doesn't work, i.e. URL contain # #39

Closed Melody86 closed 3 years ago

Melody86 commented 3 years ago

Program stuck when i run script with URL like 'https://example.com/index.html#/ohh', which is a default hash mode vue-router. Then i debugger this source project, i got its exception stack as "Error: net::ERR_ABORTED at ... at navigate...", and all the performance static turns into "Nan ms".

🚀 It takes 0.26 s to load `` 20 times

Run interval 0.26 s
Total load times 20
DNS lookup time NaN ms
TCP connect time NaN ms
TTFB NaN ms
Download time of the page NaN ms
After DOM Ready download time NaN ms
White screen time NaN ms
DOM Ready time NaN ms
Load time NaN ms

Melody86 commented 3 years ago

Same Issue with: Hash-only navigation doesn't work #257 This works for me. puppeteer/examples/hash_navigation

Melody86 commented 3 years ago

Sorry for solutions above. The fact works for me is that i specified installing puppeteer as 1.4.0 edition. Hiper default edition is 1.20.0 ( "https://registry.npmjs.org/puppeteer/-/puppeteer-1.20.0.tgz" ).

Solution for "npm install hiper -g":

  cd /usr/local/lib/node_modules/hiper      
  npm install puppeteer@1.4.0