April 2016
Intermediate to advanced
290 pages
5h 51m
English
As you saw in the previous topic, an acceptance test with Mink is all about finding elements in a page and checking to see whether they do what is expected from them. Behind the scenes, there are four important Mink objects that carry a lot of heavy lifting for us:
Driver: The Driver class implements Behat\Mink\Driver\DriverInterface, and Mink deals with every browser emulator or browser controller through this interface. We have two drivers installed in our project (Goutte and Selenium2), but keep in mind that the current version of Mink comes with five drivers out of the box.Session: Controlling the browser happens through the Session object. This is where Mink sends HTTP requests and listens for responses. ...