__construct() __construct() Tests if there is a headless browser (typically Phantom JS) available before constructing this kind of object. If not, it throws an exceptio
execute() execute() Runs a Javascript in the current headless browser instance and return the results as either a JSON or PHP object.