minkphp / MinkZombieDriver

Zombie.js driver for Mink framework
41 stars 49 forks source link

How to use with Behat.yml...? #115

Closed BevanR closed 9 years ago

BevanR commented 10 years ago

How does one get Behat to use Zombie instead of Goutte or Selenium2?

I see the example usage code in the README.md, however I don't see how this can be used to configure Behat to use Zombie, and am not sure where to put it. I tried FeatureContext.php, although I am pretty sure that is not right.

I also tried specifying zombie and default_session in behat.yml with no luck:

default:
  extensions:
    Behat\MinkExtension\Extension:
      zombie: ~
      default_session: 'zombie'
aik099 commented 10 years ago

I'm not using Behat myself, only Mink, that's why I can point you to documentation page about behat.yml configuration for MinkExtension: https://github.com/Behat/MinkExtension/blob/master/doc/index.rst . I guess you need to be using MinkExtension and corresponding MinkContext to make use of Mink in your feature contexts.

bourg-ismael commented 9 years ago

Try this :

  extensions:
    Behat\MinkExtension\Extension:
      base_url: http://yoururl/
      default_session: zombie
      zombie: ~
aik099 commented 9 years ago

Appears, that @BevanR got answer to asked question. Closing.