Skip to content

Commit bf29544

Browse files
committed
Merge pull request #32 from stof/driver_features
Add the table of supported driver features
2 parents 3aac569 + 180df2e commit bf29544

2 files changed

Lines changed: 33 additions & 5 deletions

File tree

guides/drivers.rst

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,34 @@ Mink comes with five drivers out of the box:
2020
/drivers/sahi
2121
/drivers/selenium
2222

23-
.. todo:: Build a table of the features supported by each driver
23+
.. _driver-feature-support:
24+
25+
Driver Feature Support
26+
----------------------
27+
28+
Although Mink does its best on removing browser differences between different
29+
browser emulators, it can't do much in some cases. For example, BrowserKitDriver
30+
cannot evaluate JavaScript and Selenium2Driver cannot get the response status
31+
code. In such cases, the driver will always throw a meaningful
32+
``Behat\Mink\Exception\UnsupportedDriverActionException``.
33+
34+
====================== ================= ========= ====== ======== ====
35+
Feature BrowserKit/Goutte Selenium2 Zombie Selenium Sahi
36+
====================== ================= ========= ====== ======== ====
37+
Page traversing Yes Yes Yes Yes Yes
38+
Form manipulation Yes Yes Yes Yes Yes
39+
HTTP Basic auth Yes No Yes No No
40+
Windows management No Yes No Yes Yes
41+
iFrames management No Yes No Yes No
42+
Request headers access Yes No Yes No No
43+
Response headers Yes no Yes No No
44+
Cookie manipulation Yes Yes Yes Yes Yes
45+
Status code access Yes No Yes No No
46+
Mouse manipulation No Yes Yes Yes Yes
47+
Drag'n Drop No Yes No Yes Yes
48+
Keyboard actions No Yes Yes Yes Yes
49+
Element visibility No Yes No Yes Yes
50+
JS evaluation No Yes Yes Yes Yes
51+
Window resizing No Yes No No No
52+
Window maxizing No Yes No Yes No
53+
====================== ================= ========= ====== ======== ====

guides/session.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,8 @@ browser emulator with it:
6464
.. note::
6565

6666
Although Mink does its best on removing browser differences between different
67-
browser emulators, it can't do much in some cases. For example, GoutteDriver
68-
can't evaluate JavaScript and Selenium2Driver can't get the response
69-
status code. In such cases, the driver will always throw a meaningful
70-
``Behat\Mink\Exception\UnsupportedDriverActionException``.
67+
browser emulators, it can't do much in some cases. See the :ref:`driver-feature-support`
68+
to see which features are supported by each driver.
7169

7270
Cookies and Headers management
7371
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)