Python Selemiun find_element(By.CSS_SELECTOR

Question:

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()
Asked By: dp Audiovisual

||

Answers:

Ty by xpath:

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

Or

driver.find_element(By.CSS_SELECTOR, "button[type='submit']").click()
Answered By: Jaky Ruby
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.