Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 417 Bytes

capybara-page-status-code.md

File metadata and controls

18 lines (14 loc) · 417 Bytes

Capybara Page Status Code

To quickly determine if a page is rendering as expected or not, you can check the status code of the page. If your page is rendering successfully, you'll see something like this:

> page.status_code
# => 200

If some sort of application authorization logic is causing the page to not render as normal, you may see something like this:

> page.status_code
# => 403