[Robot Framework] 通过RemoteWhiteLibrary启动程序并登录初尝试

启动remote whitelibrary之后,在robot framework中配置好library,就可以调用whitelibrary的关键字了

启动APP

White.LAUNCHAPP                      C:\\Program Files (x86\\testAPP.exe
White.GETWINDOWBYTITLE       windowsTitle

设置动态等待超时时间

White.SETFINDOBJECTTIMEOUT  60  

输入密码登录

WriteTextOnObject     xpath=//Pane[@text='Sign in']>>>Edit>>>Password>>>1      password
ClickObject                 Sign In

 

posted on 2018-03-29 14:39  张缤分  阅读(359)  评论(0)    收藏  举报

导航