Check if my javascript is loaded on a site

后端 未结 3 859
我在风中等你
我在风中等你 2020-12-22 00:57

I have asked this question before but it seems i got misunderstood therefore i decided to ask again but this time with alot of information:

For the lazy reader my go

3条回答
  •  难免孤独
    2020-12-22 01:59

    I'll post it here, too. Since I was the guy that put you on to phantomjs, it's only fair to provide you with, what I think, is the answer to your problems.
    The following script opens a page in the headless phantom browser, logs any console messages that page would yield in an actual browser, (using the onConsoleMessage event), it also logs the error if the page were to be unable to load, and, if the page was opened without issues, it checks all

提交回复
热议问题