Python Selenium-无法自动执行GMAIL登录

时间:2020-02-27 14:34:31

标签: python selenium gmail gmail-api

代码:

chrome.find_element_by_id('identifierId')

wait.until(EC.element_to_be_clickable((By.ID, 'identifierId')))

我已经尝试了两行代码登录gmail,但是python总是返回它无法找到电子邮件名称元素的信息

Gmail链接: https://accounts.google.com/signin/v2/identifier?service=mail&passive=true&rm=false&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&ss=1&scc=1&ltmpl=default&ltmplcache=2&emr=1&osid=1&flowName=GlifWebSignIn&flowEntry=ServiceLogin

Gmail HTML: <input type="email" class="whsOnd zHQkBf" jsname="YPqjbf" autocomplete="username" spellcheck="false" tabindex="0" aria-label="Email or phone" name="identifier" value="" autocapitalize="none" id="identifierId" dir="ltr" data-initial-dir="ltr" data-initial-value="">

我也尝试过寻找存在,但这也不起作用

0 个答案:

没有答案