I am searching how to get status code in selinium (with python), but unable to find it . My aim is to scroll a page and after each scroll i want to find the status so that on bad status I can exit my code.
My code
for i in range(0,60):
driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")
# I want status code here"
time.sleep(1)