开发者

Javascript fails to execute in headless Firefox [closed]

开发者 https://www.devze.com 2023-04-05 18:27 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

I've setup a Ubuntu Server install with Firefox 3.6.22 and installed a headless test environment using the headless and watir-webdriver Ruby gems. When testing in desktop browser all seems to work but in the headless Firefox version the javascript just stops dead. Normal javascript pages work an开发者_如何学运维d load correctly, any idea what's happening?


Took a lot of debugging but it turns out that any console.log statements in your javascript will kill the headless firefox dead. Will investigate more to see if it's the old Ubuntu Firefox version or somewhere else in the chain.

0

精彩评论

暂无评论...
验证码 换一张
取 消