使用RF登陸微信例子

*** 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    允許


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章