Skip to content

Commit 5689942

Browse files
committed
Apply a few more fixes from the review
1 parent 45c9bcd commit 5689942

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

guides/session.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Interacting with the Page
5353

5454
The session gives you access to the page through the ``Session::getPage``
5555
method. This allows you to :doc:`traverse </guides/traversing-pages>` and
56-
:doc:`manipulate it </guides/manipulating-pages>`. The next chapters cover
56+
:doc:`manipulate </guides/manipulating-pages>` it. The next chapters cover
5757
the page API in depth. Most of what you'll do with Mink will use this object,
5858
but you can continue reading to learn more about the Session.
5959

@@ -90,18 +90,16 @@ The session can manipulate cookies available in the browser.
9090
9191
.. note::
9292

93-
With drivers that use a browser - like Selenium2 - you may be restricted
94-
to accessing/setting only `HttpOnly cookies`_ because others cannot be
95-
accessed through JavaScript.
93+
With drivers that use JavaScript to control the browser - like Sahi -
94+
you may be restricted to accessing/setting all, but `HttpOnly cookies`_ .
9695

9796
Status Code Retrieval
9897
---------------------
9998

100-
The session lets you retrieve the status code of the response:
99+
The session lets you retrieve the HTTP status code of the response:
101100

102101
.. code-block:: php
103102
104-
// get the response status code:
105103
echo $session->getStatusCode();
106104
107105
Headers Management
@@ -151,7 +149,7 @@ The session allows you to execute or evaluate Javascript.
151149
.. code-block:: php
152150
153151
// Execute JS
154-
$session->executeScript('document.body.firstChild.innerHtml = "";');
152+
$session->executeScript('document.body.firstChild.innerHTML = "";');
155153
156154
// evaluate JS expression:
157155
echo $session->evaluateScript(

0 commit comments

Comments
 (0)