Below code works fine in firefox without the sleep(1).
But in chrome, driver.find_element_by_xpath fails.
If there is sleep(1) in between, then it works.
//the wait below passes fine for both Chrome and Firefox.
WebDriverWait(driver, 5).until(EC.presence_of_element_located((By.XPATH, '//*[@id="taketour"]/div/div[1]/a/span')))
//In chrome this does not find the element.Works in firefox.
driver.find_element_by_xpath('//*[@id="taketour"]/div/div[1]/a/span').click()
In chrome shows a
ElementNotVisibleException: Message: Message: element not visible
Below code works in both Chrome and Firefox
WebDriverWait(driver, 5).until(EC.presence_of_element_located((By.XPATH, '//*[@id="taketour"]/div/div[1]/a/span')))
sleep (1)
driver.find_element_by_xpath('//*[@id="taketour"]/div/div[1]/a/span').click()