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 with local Zombie installation
I'm having troubles with Zombie.js and Behat. I'm trying to install it locally to the project (as we're trying not to depend on global packages) but I keep getting Error: Cannot find module 'zombie/node_modules/tough-cookie' when I run Behat.
Here's…

Christopher Francisco
- 15,672
- 28
- 94
- 206
0
votes
0 answers
Simulate authentication or login when using Behat + Symfony
Most part of my app requires that the User is logged in and some parts requires the User has specific role.
I have this feature file.
Background:
Given I am logged in as "saif"
And I am making transaction for "Jaime Sangcap"
…

Jaime Sangcap
- 2,515
- 6
- 27
- 45
0
votes
1 answer
Zombie.js Mink Behat not working
I have been struggling with getting to zombie.js work with mink behat. Below is the minimized version of my files.
composer.json
{
"require": {
"behat/mink": "^1.7",
"behat/mink-zombie-driver": "^1.4"
}
}
package.json
{
"private":…

Salal Aslam
- 1,367
- 4
- 16
- 32
0
votes
1 answer
How would I make a fake signature with behat
Picture of tested code / Picture of working signature Hello I am using behat with the selenium driver integrated with mink and I am trying to write a test that inputs a fake signature. We use the mouse to draw the signature on the screen so I want…

Tomas Leffew
- 21
- 8
0
votes
1 answer
Is there a way to simulate a link/button click in mink?
I'm using a headless browser (phantomjs) in conjunction with Mink to do some functional testing on my Website.
Now in this setting, files can not be downloaded regularly e.g: by clicking a link. So I have to extract the url from the link or the…

user2268997
- 1,263
- 2
- 14
- 35
0
votes
1 answer
Behat/Mink retrieve input type file name
Do you know how to retrieve an input type file name from a Behat/Mink/Element/NodeElement ?
I have a simple test html

Nick Realdini
- 67
- 2
- 9
0
votes
2 answers
Behat/Mink/PageObjects - page object class not found
Setting up testing with behat for my project... I got most of the things working - except the page objects. Here's my behat.yml
default:
autoload: [%paths.base%/boostrap]
suites:
web:
paths: [%paths.base%/features/web]
…

Aleks G
- 56,435
- 29
- 168
- 265
0
votes
2 answers
Behat\Mink: wait($timeout) does not work
I'm using Mink together with the Zombie Driver to write acceptance Tests. Now I'm trying to make an ajax call, so I'm using the wait($timeout) method to wait for the response, but it does not work. I'm calling wait like $this->session->wait(20000),…

user2268997
- 1,263
- 2
- 14
- 35
0
votes
1 answer
How to link from mail server to browser?
I want to redirect from mail to browser. Requirement is like, I have a mail that contains one link, after clicking on that link it will redirect to the browser. To achieve this I configured my base url on mail server for example…

Suraj
- 297
- 3
- 18
0
votes
1 answer
Error while processing event 'click': "SyntaxError: Unexpected token u\n
I am using basic features with MinkZombieDriver. my
node -v 5.2.0, npm -v 3.10.5, mink-zombie-driver v1.4.0 ..
behat.yml
default:
extensions:
Behat\MinkExtension:
base_url: 'https://example.com'
javascript_session: zombie
…

Hasan
- 1
0
votes
3 answers
Behat-Mink, force Selenium driver to use Chrome instead of Firefox
So I want to run my tests in Chrome instead of Firefox (because Chrome offers mobile emulation capability) when using Selenium driver with Behat's Mink extension.
I'm running Selenium stand alone on a testing server, and running tests on a local…

Shivox
- 13
- 1
- 4
0
votes
1 answer
Behat MinkExtension traversing, counting css-selectors
i need to test, how many css-selectors appear on webseite.
I geht only huge array with nodes, which match on my condition.
When i count rows within array, i get "five", but it schould be "three"
My code:
/**
* @Then /^I should see more then one css…

Roma Kap
- 517
- 1
- 8
- 23
0
votes
1 answer
Behat3 MinkExtension could not be enabled
i want to achieve take a screenshot by using Behat, Mink and SeleniumGrid
But i get this errors:
Given I go to
"mySite.org/private" #
FeatureContext::visit()
Mink instance has not been set on Mink context class. Have you enabled the…

Roma Kap
- 517
- 1
- 8
- 23