phantomjs - Run CasperJS as an included Javascript in a web page and execute casperJS commands interactively -


can casperjs (with phantomjs) run directly in browser , not via command line ?

i run interactive test browser take inputs user , proceed accordingly. run casperjs normal javascript function executed in browser , able produce output of each command user, such user can decide wants next.

the short answer is: no, not you've described it. casperjs runs on, , depends on, phantomjs, is browser - can't run in user's browser.

if want offer interactive casperjs session through webpage, you'd need run casper/phantom on server, , proxy input/ouput through server. operation requires fetching other webpages , scraping or interacting them require server-side mechanism, because same origin policy makes quite difficult implement using client-side javascript (though browser extension might able it).


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -