I'm trying to verify that the checkbox is present but didn't find the exact answer is it possible to check it using Selenium Python (Assert will be great solution).
This is my code:
driver.find_element(By.XPATH, '/html/body/div[2]/div/div/div[2]/div/div[1]').click()
time.sleep(1)
driver.find_element(By.XPATH, '/html/body/div[2]/div/div/div[2]/div[1]/div/div/div[1]/div/ul/li[2]').click()
Now I need to verify whether element with xpath:
/html/body/div[2]/div/div/div[2]/div[1]/div/div/div[1]/div/ul/li[2]
is present ot not?