Trying to use Codeception Web Driver and Selenium to emulate ajax through an acceptance test. I was using PhpBrowser but when I was having issues with Ajax my friend suggest
I had this same problem, I forgot to run phantom.js before trying to do any browser tests. I ran phantomjs and it worked.