Behat / MinkExtension

Mink extension (tight integration and configuration) for Behat
MIT License
636 stars 276 forks source link

Parameter show_cmd and show_auto not working #211

Open aman4you opened 9 years ago

aman4you commented 9 years ago

Using show_cmd and show_auto parameter in behat.yml file under mink extension. Run feature file through phantomjs. Phantomjs running through command "phantomjs --webdriver=8643". show_cmd parameter saving current page html file but in place of opening html file itself throw error " 'ie' is not recognized as an internal or external command, operable program or batch file " I tried other browser but same result.

Behat v2.5.4 Mink v 1.6.1 phantomjs 1.9.8

behat.yml file

default: context: class: 'FeatureContext'

extensions: Behat\MinkExtension\Extension: base_url: http://hcl.local default_session: selenium2 goutte: ~ selenium2: wd_host: "http://localhost:8643/wd/hub" browser_name: ie show_cmd: 'ie %s' show_auto: true show_tmp_dir: C:\xampp\htdocs\hcl\docroot\sites\default\behat_tests\bin\output Drupal\DrupalExtension\Extension: blackbox: ~

paths: features: features bootstrap: bootstrap

filters: tags: "@Run"

formatter: name: pretty, html parameters: output_path: null, C:\xampp\htdocs\hcl\docroot\sites\default\behat_tests\bin\output\practice.html output_styles: comment: [ white ]

If i am right these mink parameters benefit is when step fail browser automatically open with last opened page. If these parameter have other benefits, plz let me know

janipalsamaki commented 9 years ago

You should first find out what is the command for opening a browser from command line (command prompt, terminal). For example, in OS X one can write open http://www.google.com in the terminal to open up a page using the default browser.

After you figure out the command for your system, you should be able to use that command in show_cmd.