![](/img/trans.png)
[英]python- using splinter to open and login webpage but need to save the complete webpage
[英]python- using splinter to open and login webpage failed, help!!
我想自动登录这个网站,但不管 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")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.