Closed tgjonestx closed 8 years ago
@tgjonestx Can you test if this solves your problem?
We insert it as the beginning:
page.execute_script('if(localStorage && localStorage.clear) localStorage.clear()')
Please upgrade to PhantomJS 2.0. 1.9.x is no longer supported, and known to have many crasher bugs that are fixed in 2.0.
I'm running a super trivial one-feature/one-scenario test with Cucumber, Capybara, Poltergeist and Phantomjs crashes on a simple click. Not sure how to reproduce the issue outside of a Cucumber/Capybara/Poltergeist context, but I do know that the exact same test executes fine with Firefox and Chrome. The same crash occurred with PhantomsJS 1.9.7
Here's the relevant error message from the test execution.
The stack dump is attached below.
Steps to reproduce
$ ./dockerBuild.sh
$ ./dockerRun.sh -d selenium_chrome
Here are details on the execution environment (more info in the Dockerfile ):
Here's the crash dump as reported by minidump_stackwalk: