Home > front end >  Python Selemiun find_element(By.CSS_SELECTOR
Python Selemiun find_element(By.CSS_SELECTOR

Time:11-08

enter image description here

I'm trying to hit the button but it doesn't work

driver.find_element(By.CSS_SELECTOR, "input[type='submit']").click()

CodePudding user response:

Ty by xpath:

driver.find_element(By.XPATH, "//button[@type='submit']").click()

Or

driver.find_element(By.CSS_SELECTOR, "button[type='submit']").click()
  • Related