Trying to click on this button
Tried:
driver.find_element(By.XPATH, '//*[@id="signup_with_facebook"]/button').click()
Error:
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
Tried:
button = driver.find_element(By.XPATH, '//*[@id="signup_with_facebook"]/button')
ActionChains(driver).move_to_element(
button
).click(
button
).perform()
Error:
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable: [object HTMLButtonElement] has no size and location
How to do this?
Code:
driver = webdriver.Chrome(executable_path='chromedriver')
driver.get('https://www.myheritage.com/deep-nostalgia')
driver.find_element(By.XPATH, '//*[@id="masterPageHeader"]/div/div[3]/div/div[2]/div[1]/div[2]/a[1]/span').click()
driver.implicitly_wait(10)
wait = WebDriverWait(driver, 20)
wait.until(EC.visibility_of_element_located((By.XPATH, '//*[@id="signup_with_facebook"]/button'))).click()
Error:
selenium.common.exceptions.TimeoutException: Message:
