使用RF登陆微信例子

时间:2017-07-17 01:26:46   收藏:0   阅读:653

*** Settings ***

Library           RequestsLibrary

Library           requests

Library           json

Library           AppiumLibrary


*** Test Cases ***

test1

    Open Application    http://localhost:4723/wd/hub    platformName=Android    deviceName=test    appPackage=com.tencent.mm    appActivity=.ui.LauncherUI    platformVersion=6.0

    Wait Until Page Contains    始终允许

    click button    始终允许

    click button    始终允许

    click button    始终允许

    Run Keyword And Ignore Error    click button    允许

    click element    xpath=//*[@text="登录"]

    click button    用微信号/QQ号/邮箱登录

    input text    xpath=//*[@class="android.widget.EditText"][1]    1106648034

    input text    xpath=(//*[@class="android.widget.EditText"])[2]    91CTT1106648034

    click element    xpath=//*[@text="登录"]

    Run Keyword And Ignore Error    click button    允许

    Run Keyword And Ignore Error    click button    允许


评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!