Mink is an open source acceptance test framework for web applications, written in PHP 5.3.
Questions tagged [mink]
460 questions
5
votes
4 answers
Behat with Jenkins - how to serve PHP app?
I have recently started using Behat with Mink on a PHP project that uses the Slim microframework My Behat tests work fine but I would like to run them as part of my build, which uses the Jenkins-PHP template by Sebastian Bergmann.
To do this, I…

gavD_UK
- 395
- 5
- 11
4
votes
1 answer
How to properly set desiredCapabilities in behat.yml with Mink
We are using Behat with Mink. So far we used to just set the DesiredCapabilities in the code, but now we want to change that to get them from the behat.yml and use different profiles, so we have one profile for firefox, one for chrome... and so…

yeaitsme
- 91
- 1
- 9
4
votes
1 answer
File upload with Behat, Mink & PhantomJS
I am trying to upload a file using Behat. Therefore I wrote this simple HTML page:
…

Dero
- 309
- 1
- 2
- 17
4
votes
3 answers
Testing multi-tenancy Laravel applications using Behat / Mink and Behat Laravel Extension
I am building a multi-tenant SaaS application which I am trying to write tests for with Behat, using Mink and the Behat Laravel Extension
When you register for an account, you get your own subdomain on the site {account}.tenancy.dev
my behat.yml…

Andrew Willis
- 2,289
- 3
- 26
- 53
4
votes
4 answers
How to get the Mink Selenium 2 Driver to wait for the page to load with Behat
I am in the process of upgrading from the Behat 2.x series to the Behat 3.x series. In the prior version I could load the Selenium 1 driver, which attached to PhantomJS to execute tests. When I did this I was able to hook into a function called…

Patrick
- 3,302
- 4
- 28
- 47
4
votes
2 answers
This page is asking you to confirm that you want to leave
I am running the behat tests on my site installation. I am getting the following errors when running the tests. I switched into using firefox, because I had issues with the new chromedriver 2.10. Can I work around this one?
Error message:
Modal…

Potney Switters
- 2,902
- 4
- 33
- 51
4
votes
4 answers
How can I detect 404 errors for page assets?
I've just gotten started with Behat and Mink. I'm using MinkExtension with Goutte and Selenium, and also DrupalExtension.
So far, so good. I can load a page, look for various elements, test links, etc.
But I don't see how to check for 404s on…

joe casey
- 126
- 7
4
votes
3 answers
How to restart the browser keeping the cookies in Behat?
I am trying to test the "remember me" feature using Behat/Mink. Here's my scenario:
Scenario: A user logs in ticking "Remember me". As he closes his browser and visits back the site, he should be automatically logged in
Given I am on "/login"
…

Strategist
- 633
- 1
- 9
- 11
4
votes
4 answers
Behat / Mink Getting value from a CSS Element
I have a expandable div on a website. I want to create a test case with Behat/Mink to assert that when the user reaches the page the box is not expanded.
Click to expand

Remus
- 83
- 1
- 6
4
votes
1 answer
What is the difference between behat, mink and selenium in php
I am new to testing. All i knew was we PHPunit for testing various functions within class and then i know selenium for browser testing.
I know we can write php to link with selenium web driver to do headless testing of browser.
I am not able to get…

user24
- 119
- 2
- 9
4
votes
3 answers
Maintaining the session between scenarios in a single feature file in behat and mink
I have done a lot of R&D on this but I am unable to find a solution.
I need to maintain a login session between different scenarios in a single feature file.
I have made a function I am logged in and I have written in background. so at the start of…

Arpan Buch
- 1,380
- 5
- 19
- 41
4
votes
1 answer
Confusion between BehatContext and MinkContext
I am trying to do BDD in my Symfony 2.3 project and appear to be struggling with some inconsistencies.
Depending on whether I use BehatContext or MinkContext as my base class for the FeatureContext class, I am getting different results.
If I…

milof
- 696
- 9
- 25
4
votes
1 answer
unable to run codeception in virtual machine -Mink could not be found and loaded
I installed a vm ubuntu guest OS.
My app is running from the browser in my host OS at the url
http://abc.localhost:8888
I type
php codecept.phar run in the guest OS terminal.
I get the following error:
[Codeception\Exception\Configuration]
Mink…

Kim Stacks
- 10,202
- 35
- 151
- 282
4
votes
2 answers
How do I interact with a popup window with Mink, Selenium 2, and Behat?
I am running through an internal site with Behat and for the most part it is going really well. But the problem is that on certain parts of the site we have popup windows that come up to complete an action. In this case we hit a "Withdraw" button…

Patrick
- 3,302
- 4
- 28
- 47
4
votes
4 answers
How to configure curl parameters in Mink?
I am trying to bring Behat to a https secured project and mink fails when initiating curl request.
Scenario: Loggin in # features/debt.feature:6
Given I am on "/" #…

Dziamid
- 11,225
- 12
- 69
- 104