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
behat/mink selenium abstraction layer for python?
So in the PHP world there is an abstraction layer you can use called Mink which runs on top of selenium which gives you a much nicer interface than straight selenium webdriver. An example of what this looks like is below:
// set the default session…
user5076297
0
votes
2 answers
Behat/Mink not finding a default step for a "Then" statement
I cannot get Mink/Behat to find the default step for the phrase
Then I should see "some text" in the element "element"
Here is my thepage.feature file:
Feature: Page Works
In order to use the page
As a visitor
I need to be able to load it and…

Jodes
- 14,118
- 26
- 97
- 156
0
votes
3 answers
Mink: Where are these methods defined?
I'm learning Mink, and want to find an API reference. I've dug into the Mink source code for answers, but am baffled.
The documentation gives examples of its use:
$session->getPage()->hasContent("bla");
$session->getPage()->find('css',…

Jodes
- 14,118
- 26
- 97
- 156
0
votes
1 answer
Behat can't find PhpExecutableFinder
I get the following error when executing Behat:
PHP Fatal error: Class 'Symfony\Component\Process\PhpExecutableFinder' not found
I don't know if its normal, but the PhpExecutableFinder is located within my composer.phar after php composer.phar…

Dornathal
- 882
- 9
- 16
0
votes
1 answer
Behat with Mink extension and selenium2 to automate a test case
I am trying to select an iFrame which has a text box within it. Here is the structure of the page:

neesop
- 49
- 6
0
votes
1 answer
Behat mink test multiple pages
I'm new to behat.
what I want to do is test a bunch of pages if they exist or not.
this is my example:
Scenario: Page "contact"
Given I am on "/contact"
Then I should see "contact"
in the footer you see a link called contact
so if there is some php…

Ralph Schipper
- 701
- 2
- 12
- 24
0
votes
1 answer
Validate the calendar view of a page displays current month and date - behat test automation script
I am new to test automation and currently we are using a combination of behat + mink + selenium to automate tests. I want to check whether the calendar view displays the correct month and date. Here is my gherkin script:
Feature: Users see the…

neesop
- 49
- 6
0
votes
0 answers
Laravel 5 Behat Mink, cannot locate base_url
I am new to BDD but my issue is that All my test Scenarios failed even though, I can see them working on browser.
So I am guessing Behat must be pointing to a wrong URL which I can't figure out. My behat.yml content is:
default:
extensions:
…

Motolola
- 368
- 5
- 19
0
votes
2 answers
Behat / Mink error Snippets for the following steps not generated
When switching over from Behat to Mink in v3 to use headless browser for testing. It stops generating Snippets for me automatically from my feature files.
Following the setup for features/bootstrap/FeatureContext.php from the docs.
behat
#…

tristanbailey
- 4,427
- 1
- 26
- 30
0
votes
1 answer
Display current session name in mink
I am doing some tests with zombie.js and phantom.js, I would like to display my active session name before each test. Which method can I use?
With behat 3.0 and mink 1.6.

nitche
- 121
- 3
- 13
0
votes
1 answer
Enabling Mink Extension in Behat
I'm trying to add the Mink extension to Behat. I've installed Behat, Mink and Mink-Extension through composer. However, now I'm having trouble with enabling the extension. Here is my behat.yml:
default:
extensions:
…

beznez
- 1,883
- 4
- 17
- 23
0
votes
0 answers
Getting Fatal error on executing a test on Behat+Mink+Selenium
I am executing the test on Behat+Mink+Selenium. Below is the code which is have added in the FeatureContext.php:
/**
* @Given /^\|I am on "([^"]*)"$/
*/
public function iAmOn($arg1)
{
$this->visit($arg1);
}
Below is…

user2617223
- 11
0
votes
1 answer
Selenium POST /session/url error
I'm trying to write some unit tests using behat and mink with selenium plugin
and while running some dummy tests a selenium error appeared. I've try my best to google it out but no luck. So may be here I could get an answer
Given I am on…

1099511627776
- 176
- 1
- 18
0
votes
3 answers
Is it possible to assert text in a repeated div?
I am using behat/mink to create some BDD tests. I would like to know if it's possible to get a text inside a div that is repeated in the page. For example:

Thomas
- 2,256
- 6
- 32
- 47
0
votes
0 answers
Selenium2: bug with Interaction with an element
I am writing Behat/Selenium2 tests and I want to check a checkbox on the page I test but I got this error :
When I check "id_checkbox_role_module_keyword"
Element is not currently visible and so may not be interacted with
However I can see my…

sf_tristanb
- 8,725
- 17
- 74
- 118