Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (19.7k points)

I am writing a selenium script by python, but I think I don't see any information about:

How to get http status code from selenium Python code.

Or I missing something. If anyone found that, please feel free to post.

1 Answer

0 votes
by (62.9k points)

Unfortunately, selenium doesn't give this info designedly.

There is a very lengthy discussion about this, but the short of it is that:

Selenium is a browser emulation tool, certainly not a testing tool.

Selenium performs several GETs and POSTs throughout the method of rendering a page and adding an interface for that might complicate the API in ways in which the authors resist.

If you are interested to learn Selenium on a much deeper level and want to become a professional in the testing domain, check out Intellipaat’s Selenium certification online!

Browse Categories