perfmap icon indicating copy to clipboard operation
perfmap copied to clipboard

help with headless testing

Open gleicon opened this issue 11 years ago • 5 comments

Hi, I'd like some pointers to try to run perfmap on phantomjs/casperjs to store a screenshot of the test. I did some testing following my experience on phantomjs but it seems that just injecting the element wont work:

https://gist.github.com/gleicon/bfc006ab267cf3f6dc76

gleicon avatar Oct 20 '14 18:10 gleicon

Sorry, I haven't done any work with phantomjs. I'll tag as "help wanted" and someone might help you out.

zeman avatar Oct 21 '14 20:10 zeman

@gleicon, unfortunately PhantomJS does not support Navigation Timing API - https://github.com/ariya/phantomjs/issues/10570:

console.log(typeof window.performance); // undefined

macbre avatar Oct 21 '14 20:10 macbre

However, it does work on SlimerJS (which uses Gecko engine)

https://gist.github.com/macbre/9f23f314d8a3ff69313b

npm install -g slimerjs

macbre avatar Oct 21 '14 20:10 macbre

awesome ! thanks :D

gleicon avatar Oct 21 '14 20:10 gleicon

I have done some work with phantomjs, jasmine and grunt. check my pull request.

matiascarranza avatar Oct 21 '14 23:10 matiascarranza