Hello Guys i'm tryng to click a button but is not working. my code is like this:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
driver = webdriver.Chrome()
driver.implicitly_wait(0.5)
driver.maximize_window()
driver.get("https://www.freewayinsurance.com/")
driver.implicitly_wait(0.5)
element = driver.find_element(By.ID, "zipcode")
element.send_keys("60056")
element2 = driver.find_element(By.XPATH,"//div[@class='c-hero-home-radio__form-items']//button[@Class='c-button c-button--orange' and text()='Start Quote']")
element2.click()
I will apreciate if somebody can help me please thank you
The Html looks like this: this is the HTML