Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Parameter show_cmd and show_auto not working #211

Open
aman4you opened this issue May 27, 2015 · 1 comment
Open

Parameter show_cmd and show_auto not working #211

aman4you opened this issue May 27, 2015 · 1 comment

Comments

@aman4you
Copy link

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
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants