I am using Selenium to login to as follows:
driver.switch_to.default_content()
WebDriverWait(driver, 10).until(EC.frame_to_be_available_and_switch_to_it((By.NAME,'email'))).send_keys("myemail@gmail.com")
but I keep getting an error:
TimeoutException: Message:
I have also tried:
WebDriverWait(driver, 10).until(EC.frame_to_be_available_and_switch_to_it((By.XPATH,"//iframe[@id='email']"))).send_keys("myemail@gmail.com")
Here is the source HTML code I am accessing:
<div id="signup-form">
<div class="logo"></div>
<h1 data-i18n="signin">Sign in</h1>
<div class="panels-wrapper">
<div class="panels">
<div class="panel step-1">
<input name="email" type="text" id="email" required="" maxlength="100">
<label for="email" data-i18n="email">Email</label>
Appreciate any guidance to fix this.