Skip to content

Comment on PhantomJS, Selenium, and Django: Headless Browser Testing for the Rest of Us

Comments

PhantomJS is awesome for speed, but I noticed that it sometimes doesn't render iframe elements, ajaxed elements properly while using just Firefox does render all elements correctly.

Are you sure you just weren't waiting long enough for them to load? Phantom's onLoadFinished only takes into account the main frame, not any iFrame or AJAX resources. For that you need some sort of DOM based waitFor().

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.