RobotFramework-登录

*** Settings ***
Library           Selenium2Library

*** Test Cases ***
login
    [Setup]    open browser    http://XXX/XXX/login
    input text    id=u14_input    admin
    input text    id=u15_input    123456
    SLEEP    1
    click element    xpath=//*[@id="u17"]/p/span
    Comment    press key    id=u15_input    \\13
    ${loginName}    get text    id=spanLoginNickName
    log    ${loginName}
    Should Be Equal As Strings    ${loginName}    管理员
    [Teardown]    close browser

 

posted @ 2016-01-04 09:40  职场人的思考  阅读(497)  评论(1编辑  收藏  举报