php - Using Mink and Sahi, how do i use another browser besides FF? -


whenever run sahi, using firefox default. trying have more control on browser use. have followed instructions http://mink.behat.org/#sahidriver

and behat.yml :

default:   formatter:     name: progress   extensions:     behat\symfony2extension\extension:       mink_driver: true       kernel:         env: test         debug: true     behat\minkextension\extension:       sahi: ~       goutte: ~       base_url: 'http://local.referral.com'       default_session: sahi 

my function is:

public function iamonhomepage()     {          $session = $this->getsession();         $session->visit($this->locatepath('/'));          $link = $session->getpage()->findlink('i physician');         if (null === $link) {           throw new \logicexception("home page not loaded:\n");           }     } 

how specify additional instructions browser etc? in code or in yml file.

if how do it?

# behat.yml mink:     browser_name: chrome 

you set multiple profiles run same scenarios against different browsers.

source: https://github.com/behat/minkbundle/issues/15

see available parameters here: https://github.com/behat/minkbundle/blob/master/dependencyinjection/configuration.php#l29


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -