Browse Source

no message

master
LG_lai 1 year ago
parent
commit
a36015499a
2 changed files with 6 additions and 6 deletions
  1. 2
      LoginUI/Login.robot
  2. 10
      LoginUI/LoginResource.robot

2
LoginUI/Login.robot

@ -19,5 +19,5 @@ open
#Then 数据库操作
趣招亲小程序
Given 小程序UI自动化
Given 小程序UI自动化-登录
#用户打开小程序

10
LoginUI/LoginResource.robot

@ -55,8 +55,8 @@ Library String
END
BuiltIn.Set Global Variable ${userid}
小程序UI自动化
#小程序UI自动化
小程序UI自动化-登录
#小程序UI自动化-未登录状态下登录趣招亲小程序
Open Application http://127.0.0.1:4723/wd/hub platformName=Android platformVersion=9 deviceName=emulator-5554 automationName=uiautomator2
${Ysize} Get Window Height #获取屏幕高度
${Xsize} Get Window Width #获取屏幕宽度
@ -65,15 +65,15 @@ Library String
${Y2} BuiltIn.Evaluate ${Ysize}*0.5
Swipe ${X1} ${Y1} ${X1} ${Y2} #模拟下拉操作
Wait Until Page Contains 趣招亲 3 #等待页面出现指定的文本
Click Element xpath=//android.widget.RelativeLayout[@content-desc=\"趣招亲,\"]/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[1]/android.widget.ImageView[1] #点击“趣招亲”小程序(已登录)
Click Element xpath=//android.widget.RelativeLayout[@content-desc=\"趣招亲,\"]/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[1]/android.widget.ImageView[1] #点击“趣招亲”小程序
BuiltIn.Sleep 1
Click Element xpath=//android.view.View[@text=\"我的\"] #进入小程序后点击"我的"
Click Element xpath=//*[@text="我的"] #进入小程序后点击"我的"
BuiltIn.Sleep 1
Click Element xpath=//android.view.View[@text=\"微信用户\"] #登录趣招亲
Wait Until Page Contains 一键登录 3 #等待页面出现指定的文本
Click Element xpath=//*[@text="我已阅读并同意"] #勾选协议
Click Element xpath=//*[@text="一键登录"] #一键登录
Click Element xpath=//android.view.View[@text=\"180****4975\"] #确认手机号登录
Click Element xpath=//android.view.View/android.view.View[4] #确认手机号登录
#Wait Until Page Contains 立即完善 3 #等待页面出现指定的文本
#Click Element xpath=//android.webkit.WebView/android.view.View[2]/android.view.View[1] #立即完善资料
Close Application
Loading…
Cancel
Save