Jonny Wenmoth

Results 19 comments of Jonny Wenmoth

This is a fairly important issue that needs to be fixed. A cache clear shouldn't cause the application to break, which is what happens in this instance. It also causes...

Just discovered that you can configure the manifest file path which solves the cache clear issue. ``` maba_webpack: config: manifest_file_path: '%kernel.cache_dir%/webpack_manifest.php' ```

Try installing the executable from the [website](http://phantomjs.org/download.html) and pointing the installation at it. ``` $client = Client::getInstance(); $client->getEngine()->setPath('\path\to\phantomjs\executable.exe'); ``` I'm not sure if the path should use backslashes or forward...

You can add it by setting the userAgent in your PhantomJS script: page.settings.userAgent = 'YourUserAgent'; This is not currently supported in this library but will add it to the list...

If you want DOM navigation you're probably better to look into the Symfony DOM crawler library - http://symfony.com/doc/current/components/dom_crawler.html

You can set a cookies file to persist sessions across requests. ``` $file = '/path/to/your/file.txt'; $client = $this->getClient(); $client->getEngine()->addOption('--cookies-file=' . $file); ``` Make sure that your file is writeable by...

Sorry I don't really understand what you are trying to do. Can you explain it a little more?

I will be working on v4.6 over the next few days so I will try and get cookie management in there.

@alistair-soreal @steveWinter I have created a [repo](https://github.com/jonnnnyw/php-phantomjs-tests) with the old test files if you want to fix the tests.

There is an option to output the page as PDF if that is what you are after? http://jonnnnyw.github.io/php-phantomjs/4.0/usage/#output-to-pdf Otherwise if you could give me a more concrete example I can...