我刚开始使用Selenium2Library学习RobotFramework,我无法修复一个简单脚本的问题。
环境:
RobotFramework测试用例
*** Settings ***
Library Selenium2Library
Resource resource.robot
Send Email
Open Browser To Login Page
${username}= set variable mail@hotmail.com
${email}= Set Variable i0116
Input Username ${email} ${username}
${pw}= set variable mypw
${pwlab}= Set Variable passwd
Input Password ${pwlab} ${pw}
Submit logiiin
sleep 5
Press Key c_cb0 N
在文件resource.robot中我有:
*** Variables ***
${SERVER} login.live.com/login.srf?wa=wsignin1.0&rpsnv=12&ct=1447686304&rver=6.4.6456.0&wp=MBI_SSL_SHARED&wreply=https:%2F%2Fmail.live.com%2Fdefault.aspx&lc=2070&id=64855&mkt=pt-pt&cbcxt=mai
${BROWSER} Firefox
${DELAY} 0
${LOGIN URL} https://${SERVER}
*** Keywords ***
Open Browser To Login Page
Open Browser ${LOGIN URL} ${BROWSER}
Maximize Browser Window
Set Selenium Speed ${DELAY}
Input Username
[Arguments] ${email} ${username}
Input Text ${email} ${username}
Submit email
Click Button next
Input Password
[Arguments] ${pwlab} ${pw}
Input Text ${pwlab} ${pw}
Submit logiiin
Click Button idSIButton9
Submit newMail
Click Element NewMessage
这个工作登录但是发送新电子邮件失败了,说这个错误:
WebDriverException:消息:拒绝访问属性的权限" __ qosId" Stracktrace:
at r(https://a.gfx.ms/Share_xgR2IG1nRyxXCDZm4LxGdg2.js:1>
at U /< (https://a.gfx.ms/Share_xgR2IG1nRyxXCDZm4LxGdg2.js:1>
但我不明白为什么