Skip to content

Commit 45c9bcd

Browse files
committed
Update the note about the behavior of Session::visit
1 parent b529188 commit 45c9bcd

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

guides/session.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,9 @@ on the ``about:blank`` page), and calling any other action is likely to fail.
4444

4545
Mink is primarily designed to be used for testing websites. To allow
4646
you to browse and test error pages, the ``Session::visit`` method does
47-
not consider error status codes as invalid. It will not throw an exception
48-
in this case. You will need to check whether the response was a success
49-
or an error. It will only throw an exception when Mink cannot load the
50-
page (network error, ...). For cases, when driver does not support status
51-
code retrieval, it might be possible to assert text on the page itself
52-
to determine whether it is an error page or no.
47+
not consider error status codes as invalid. It will *not* throw an exception
48+
in this case. You will need to check the status code (or certain text
49+
on the page) to know if the response was successful or not.
5350

5451
Interacting with the Page
5552
-------------------------

0 commit comments

Comments
 (0)