找不到元素定位器

时间:2018-06-20 08:05:07

标签: selenium robotframework

我将Selenium2Library与Robotframework一起使用。使用我的代码源,我进入了Web浏览器,并在打开2个窗口之后。然后,在尝试单击窗口上的元素定位器但未找到该元素后,我关闭了一个窗口。我有错误:'id = ggroup1Mon'5秒后与任何元素都不匹配

Open Browser     http://10.70.150.34/avldisplay/MONITORING/Authentification 
Wait Until Element Is Visible      id=j_username
Click Element        id=j_username
Input Text    id=j_username     452

Wait Until Element Is Visible      id=j_password
Click Element        id=j_password
Input Text     id=j_password   463425

Wait Until Element Is Visible      xpath=//button[@type='submit']
Click Element        xpath=//button[@type='submit']

${az}=      List Windows   

Select Window       @{az}[1]

Close Window     

Select Window       @{az}[0]

Wait Until Element Is Visible       id=ggroup1Mon
#Click Element        id=ggroup1Mon

0 个答案:

没有答案