79304162

Date: 2024-12-23 20:38:08
Score: 1
Natty:
Report link

Upon inspecting the 'x' button on the website-- the class name is "index_closeIcon__oBwY4", not "Icon__oBwY4". So, if you use the correct class name in the last line of code, it will work correctly:

driver.find_element(By.CLASS_NAME,  "index_closeIcon__oBwY4").click()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: MaddyWayne