https://idmsa.apple.com/IDMSWebAuth/signin?appIdKey=990d5c9e38720f4e832a8009a0fe4cad7dd151f99111dbea0df5e2934f267ec8&language=HK en-amp;段=R409&grpcode=g001&视图=6&rv=1¶mcode=h006&路径=%2Geniusbar%2F409%2Fen_HK&路径2=%2Geniusbar%2F409%2Fen_HK
我想自动登录这个网站,但无论是browser.fill还是find_by_name
或find_by_id
都不起作用
以下是输入的信息:
<input type="email" class="si-text-field" id="appleId" can-field="accountName" autocomplete="off" autocorrect="off" autocapitalize="off" aria-required="true" required="required" aria-labelledby="appleIdFieldLabel" spellcheck="false" autofocus="" placeholder="Apple ID">
<input type="password" id="pwd" aria-required="true" required="required" can-field="password" autocomplete="off" class="si-password si-text-field " placeholder="Password">
但当我使用下面的代码时,它不起作用,我不知道登录表单有什么特殊之处
browser.fill("appleId","***")
browser.fill("pwd","***")
splinter.exceptions.ElementDoesNotExist: no elements could be found with name "appleId"
表单在iframe
中,在填写登录名和密码之前切换到它:
with browser.get_iframe('aid-auth-widget-iFrame') as iframe:
browser.find_by_id("appleId").type("your login")
browser.find_by_id("pwd").type("your password")