mraid / webtester

MRAID Web-based Ad Creative Testing Tool
http://webtester.mraid.org
BSD 2-Clause "Simplified" License
78 stars 39 forks source link

Integrate MRAID JS with PhantomJS #24

Open lokeshhctm opened 8 years ago

lokeshhctm commented 8 years ago

I am wondering if anyone can help me here to integrate the MRAID rendering with PhantomJS. PhantomJS can load JS and i end up loading all JS in safari folder but when i try to render ad, it complains about mraid object

JohnathanWeisner commented 8 years ago

My guess would be that you're loading the JS in the wrong order. Double check to make sure that the MRAID js file is loaded first. You can configure PhantomJS to load JS before the JS on the page is loaded.

lokeshhctm commented 8 years ago

can you give a sample please?