Mink is an open source acceptance test framework for web applications, written in PHP 5.3.
Questions tagged [mink]
460 questions
0
votes
1 answer
Behat: How to test a Password Reset form?
I've just started to build an API & Some web app features, using Behat to test scenarios in a BDD fashion.
All is going well, I'm testing the API with a Rest Context and Web App bits with Mink.
However, I've reached a bit of a stumbling block in the…

Rich
- 553
- 1
- 10
- 20
0
votes
1 answer
Check if existing node element instance satisfies an xpath condition
Executing an xpath query can return us a node, a node attribute, function result, etc. Executing an xpath in Mink must return a node element in find(), findAll() and has() methods of NodeElement class.
There are situations when we have a selected…

Ian Bytchek
- 8,804
- 6
- 46
- 72
0
votes
1 answer
bin/behat @FootballTeamBundle is fine but bin/phing is not for running FeatureContext
If I use bin/behat @FootballTeamBundle in terminal as stand-alone, the error screen-shots are taken and saved under build/behat/ folder which is fine however, if I run bin/phing then the FeatureContext file seems to be ignored as a whole so neither…

BentCoder
- 12,257
- 22
- 93
- 165
0
votes
1 answer
Why the steps from the Background cannot be combined with Examples in Behat
Steps from the Background cannot be combined with Examples. Is it a limitation with Behat.
I have the following feature file.
Background:
Given I have the login Page
When I login to the application using ""
Then the…

vijay pujar
- 1,683
- 4
- 19
- 32
0
votes
1 answer
Accessing behat.yml variables within FeaturesContext
I just want to access the screen_shots_path parameter from FeatureContext.php file but writing $this->getMinkParameter('screen_shots_path'); doesn't work?
Anyone know how to do it?
Thanks in advance
I checked this one but the class extends…

BentCoder
- 12,257
- 22
- 93
- 165
0
votes
1 answer
How to run the same BDD features multiple times using different user roles
Is there anyway we can run the same tests multiple times to verify the functionality.
Here is my feature file:
Feature: End to end tests
I want an End to End test pack
As Super user and Admin user
So that I can ensure that the…

vijay pujar
- 1,683
- 4
- 19
- 32
0
votes
1 answer
Behat base_url issue or sqlite database
I access my page at http://web.dev/web/app_behat.php and it works when I do it manually in browser.
So I set
base_url: "http://web.dev/web/app_behat.php/"
and I get no route matched for any route but if i set
base_url:…

Gustek
- 3,680
- 2
- 22
- 36
0
votes
1 answer
getstatuscode is not working with phantomJS
I am testing a web app with loads and loads of web pages and I would like to verify that none of the URLs are broken on every commit. Here is a code snippet.
$page = $this->getSession()->getPage();
$page_URLs = $page->findAll('css', 'header nav ul…

vijay pujar
- 1,683
- 4
- 19
- 32
0
votes
1 answer
"idle-timeout" in behat.yml for setting hte timeout value throws exception -
Added the code for the profile as follows. If remove the idle-timeout it works fine and if added gives the exception-
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized options "idle_timeout" under…

OLDRomeo
- 33
- 9
0
votes
1 answer
how to loop through the elements in Behat and Mink
I'm using Behat and Mink framework for BDD (using PHP)
I was looping through td elements to verify the values and text. Since all the elements returned are span elements, I could use getText() on the elements and it was all good.
$page =…

vijay pujar
- 1,683
- 4
- 19
- 32
0
votes
1 answer
Behat/Mink Code Coverage on Symfony2 with MinkBundle
I've installed all of the necessary bundles with composer :
"behat/behat": "*",
"behat/symfony2-extension": "*",
"behat/mink": "*",
"behat/mink-bundle": "dev-master",
"behat/mink-extension": "*",
"behat/mink-goutte-driver":…

onesteve
- 1
- 1
0
votes
1 answer
How do i use Behat with Mink and WebApiContext?
The project i'm working on has a api behind a login.
I'm using behat with mink to login:
Scenario: Login
Given I am on "/login/"
And I should see "Login"
When I fill in "_username" with "test"
And I fill in "_password" with "test"
And I…

Jos Gerrits
- 245
- 2
- 11
0
votes
2 answers
Mink > Zombie.js Can't Start Session
I am trying to create a Mink Connection With the Zombie Driver But I am Getting an Error. All ports are open and I have tried using my servers IP.
My Code:
$driver = new \Behat\Mink\Driver\ZombieDriver('127.0.0.1');
$zombieSession = new…

Alex Pelletier
- 4,933
- 6
- 34
- 58
0
votes
1 answer
Behat with mink clean before each test
I am trying to find a way to run cleanup (DB) before running on each test. How could I do if I am using behat with mink? My current FeatureContext.php looks like this:
class FeatureContext extends MinkContext
{
/**
* Initializes context.
…

phuang07
- 981
- 1
- 9
- 18
0
votes
2 answers
Behat+Mink+Selenium installation
I'm getting error below when trying to install Behat+Mink+Selenium. What could be the solution?
php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning:…

BentCoder
- 12,257
- 22
- 93
- 165