HTTP Status code assertion #1040
Answered
by
mdmintz
abdurraheemj
asked this question in
Q&A
-
Hi Michael, |
Beta Was this translation helpful? Give feedback.
Answered by
mdmintz
Oct 28, 2021
Replies: 1 comment 6 replies
-
Hi @abdurraheemj There are several SeleniumBase methods that you could use for this: self.get_link_status_code(link)
self.assert_link_status_code_is_not_404(link)
self.assert_no_404_errors() # For all links on the current page
self.print_unique_links_with_status_codes() # For current page
self.assert_equal(first, second) |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @abdurraheemj There are several SeleniumBase methods that you could use for this: