I have Selenium code running, if the test fail i want to see the entire process from start to finish (not using a screenshot), something know how can record the screen while selenium running.
from selenium import webdriver
driver = webdriver.Chrome()
# If test is fail i want to save video file who recorded the whole process
def test1():
driver.get(...)
e = driver.find_element(...)
e.click()
assert e.text == 'Some Text'
Thx.