Mink is an open source acceptance test framework for web applications, written in PHP 5.3.
Questions tagged [mink]
460 questions
0
votes
2 answers
output_path not working in behat 2.4.0?
I'm experiencing problems with HTML formatter and the output_path in behat. I'm using cmd:
behat --format=html --out=output.html --config /www/config/behat.yml test.feature
Simplified config (behat.yml) looks like this:
default:
formatter:
…

lp1051
- 491
- 7
- 19
0
votes
1 answer
Testing for warning if JavaScript not enabled with Behat/Mink
I have a simple scenario:
Scenario: No javascript warning
Given I am on homepage
When I don't have javascript enabled
Then I should see a warning
How would I implement the when part with mink? Is there a more elegant way than just…

ottsch
- 431
- 1
- 6
- 14
0
votes
1 answer
Error loading GoutteClient when using Behat/Mink
I'm trying to use Behat/Mink in order to load a website.
I've used Composer for the installation, this is my composer.json:
{
"require": {
"behat/mink": "*",
"behat/mink-goutte-driver": "*",
"behat/mink-selenium-driver":…

rfc1484
- 9,441
- 16
- 72
- 123
0
votes
2 answers
Is there a way to automatically accept unhandled alerts using mink's webdriver extension with behat?
So I've noticed that Java has the ability to handle unexpected alerts using the UnexpectedAlertBehaviour capability that came out with Selenium 2.25.0. You can see the CHANGELOG. It would be helpful for me to always accept the alerts and for the…

General Redneck
- 1,240
- 2
- 13
- 28
0
votes
1 answer
Step the url should match with Behat
I'm testing the step of Mink: Then the url should match "pattern"
My url is some like "/test/34kUñlj" and this is a _blank target. This means that when I click on a link, then it open a new windows and the url is "/test/34kUñlj".
I'm using sahi…

Biruwon
- 394
- 1
- 4
- 18
0
votes
2 answers
How to install behat and mink drivers in Windows 7 64-bit?
I am trying to set up mink to work with behat, using the instructions at http://mink.behat.org/. As you will see, about 2 screens down it tells us that mink has been installed with no drivers. I think that means it can't talk to anything.
Then it…

Ian
- 1,941
- 2
- 20
- 35
0
votes
1 answer
How to pass a Object to behat step?
I want to know if is possible to pass an object to a step of Behat.
For example, a field of my form will be fill in with a Object. It's fill in with a Object which you can select in a suggestion box. I know the other way with sahi or selenium, but…

Biruwon
- 394
- 1
- 4
- 18
0
votes
1 answer
Create step for Mink
I'm very newbie with Mink, Behat, etc so I need help.
I've a table with some rows and I want to check if one row is deleted.
In my scenario I've something like this:
When I press "Delete"
Then I should be on "/example_url/"
And I should see…

Biruwon
- 394
- 1
- 4
- 18
0
votes
1 answer
symfony2, behat and mink: accessing the container after redirect
I have a behat+mink scenario where a step visits a URL (mink), and the controller
puts something into the a service in the container
performs a redirect to another URL
The problem is that the controller redirect resets the container, so the…

E Ciotti
- 4,740
- 1
- 25
- 17
0
votes
1 answer
mink-goutte-driver. Can't install fabpot/goutte on Symfony 2.0
I am using composer with Symfony 2.0.15 and migrating to latest Behat 2.4. This is in my composer.json:
"require-dev": {
"behat/behat": "2.4@stable",
"behat/mink-extension": "*",
"behat/symfony2-extension": "*",
…

Anton Babenko
- 6,586
- 2
- 36
- 44
0
votes
1 answer
I can not run sahi
Possible Duplicate:
sahi and symfony2
I would like to test behat, mink and sahi with symfony2.
In my file config_test.yml I have
mink:
base_url: http://localhost/Symfony_Standard_2.0.15_2/symfony/web/app_test.php
default_session:…

symfounya
- 23
- 5
0
votes
1 answer
sahi and symfony2
i would like to test behat, mink and sahi with symfony2
so, in my config_test.yml i have
mink:
base_url: http://localhost/Symfony_Standard_2.0.15_2/symfony/web/app_test.php
default_session: symfony
sahi: ~
and in test.feature
…

symfounya
- 23
- 5
0
votes
2 answers
functionals tests with behat, mink and symfony2
I'm trying to test the bundles Behat and Mink, but I have a problem
I well installed the bundles
I have launched: php app / console test-e = Behat - init @ AcmeDemoBundle, the folder Features was created
I wrote a scenario in essai.feature
I have…

symfounya
- 23
- 5
0
votes
3 answers
behat mink symfony2 Warning
I try to make functional tests with the bundle Behat and Mink
However, after having installed the Bundle and all, I issued the command
php app / console test-e = Behat - init @ AcmeDemoBundle
but I get this error:
PHP Warning: require_once (C: \…

symfounya
- 23
- 5
0
votes
1 answer
symfony2 / behat / mink login troubles when testing in the browser
I have troubles executing a behat/mink test routine in the browser. I have tried sahi and selenium divers, the result is the same:
I run the test, sahi opens the login modal-popup, but does not fill in username and password. Clicking "submit" does…

stoefln
- 14,498
- 18
- 79
- 138