ValueError:元素定位器';id=Passwd';与gmail中的任何元素都不匹配(robotframework,Pycharm)

ValueError:元素定位器';id=Passwd';与gmail中的任何元素都不匹配(robotframework,Pycharm),gmail,pycharm,robotframework,Gmail,Pycharm,Robotframework,我正在使用MacEICaptain和Pycharm作为IDE和Robotframework。我犯了一个错误 ValueError:元素定位器“id=Passwd”与任何元素都不匹配 这只是Gmail.com的情况,而不是其他网站。我在Facebook和Linkedin上使用了相同的脚本,效果很好 这是我的剧本: Open Browser https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=f

我正在使用MacEICaptain和Pycharm作为IDE和Robotframework。我犯了一个错误

ValueError:元素定位器“id=Passwd”与任何元素都不匹配

这只是Gmail.com的情况,而不是其他网站。我在Facebook和Linkedin上使用了相同的脚本,效果很好

这是我的剧本:

Open Browser  https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/&ss=1&scc=1&ltmpl=default&ltmplcache=2&emr=1&osid=1#identifier  firefox
Page Should Contain  Sign in to continue to Gmail
Input Text  id=Email  user
Click Button  id=next
Wait Until Page Contains  Sign in with a different account
Input Password  id=Passwd  fdsfs
Click Button  id=signIn

单击“下一步”后,等待“密码”字段出现,然后单击以启用它。我将这些行添加到您的测试中以使其正常工作

Wait Until Page Contains Element    id=Passwd
Click Element    id=Passwd

谢谢。。。你救了我!您是否可以告诉我如何使用for循环检查另一个用户名和密码?我试了很长时间,但还是没能完成。我将不胜感激。谢谢