Can I use PhantomJS with Cucumber-js

I use Zombie.js with my cucumber-js scripts, but have few problems and cannot solve my problems. It's too late in my game to switch to another browser without a head, but if I can’t solve my problems in zombies, I may need to take a jump.

However, I cannot understand if I can integrate it into my cucumber-js scripts, as I integrated zombies. PhantomJS seems autonomous, but I need it to run as the required module.

I looked through the documentation and cannot figure out if I can do this.

Is it possible?

+4
source share
1 answer

Yes. We created an open source package that allows you to do just that, it runs Phantom in GhostDriver mode, so it works without selenium.

https://github.com/xolvio/chimp

You also get synchronous javascript for Webdriver (no callbacks, no promises);)

+1
source

Source: https://habr.com/ru/post/1483236/


All Articles