ariya / phantomjs

Scriptable Headless Browser
http://phantomjs.org
BSD 3-Clause "New" or "Revised" License
29.47k stars 5.75k forks source link

Some html element not rendered in PhatomJS #12846

Closed yogeshunavane closed 9 years ago

yogeshunavane commented 9 years ago

Link:http://www.bodybuilding.com/store/cutler-nutrition/total-protein.html

As seen on website: bb_header_2

On PhantomJS: bb_header

Menu bar goes missing here. --version 1.9.7 var page = require('webpage').create(); page.settings.userAgent = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36'; page.onError = function(msg, trace) { var msgStack = ['ERROR: ' + msg]; if (trace && trace.length) { msgStack.push('TRACE:'); trace.forEach(function(t) { msgStack.push(' -> ' + t.file + ': ' + t.line + (t.function ? ' (in function "' + t.function +'")' : '')); }); } }; page.open('http://www.bodybuilding.com/store/cutler-nutrition/total-protein.html', function() { page.render('example.jpg'); phantom.exit(); });

ariya commented 9 years ago

Thank you for submitting this ticket!

This issue tracker primarily serves as the tool to report and track bugs, defects, and development tasks. For general question, code review request, or other related discussion, please post it to either:

If you have not read it yet, please check also a few tips on Effective Q&A.