driver.find_element_by_id("ch4_loginGuestBtn").click()
This command intermittently fails with:
"Element is not clickable"
I'm guessing I need to do something like the following.
guestlogin_button = wait.until(EC.visibility_of_element_located((By.id, ".ch4_loginGuestBtn")))
actions = ActionChains(driver)
actions.move_to_element(guestlogin_button).click().perform()
This is, however, failing with:
AttributeError: type object 'By' has no attribute 'id'
What am I doing wrong, how do I fix the wait.until line?