How to get status code by using selenium.py (python code)

前端 未结 12 1104
深忆病人
深忆病人 2020-11-30 01:01

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.

12条回答
  •  攒了一身酷
    2020-11-30 01:50

    You can also inspect the last message in the log for an error status code: print browser.get_log('browser')[-1]['message']

提交回复
热议问题