9 Star 0 Fork 0

wisemyth/jl-auto-test

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
l3_order_commit.txt 2.80 KB
一键复制 编辑 原始数据 按行查看 历史
Rankin 提交于 2015-06-23 11:26 . 增加订单确认页面,增加稳定性
*** Settings ***
Resource l3_common.txt
*** Keywords ***
选择服务时间
Wait Until Keyword Succeeds 10 3 Click Element order-commit-date
Wait Until Element Is Visible xpath=//dt-picker-item
Capture Page Screenshot
Wait Until Keyword Succeeds 10 3 Click Element xpath=//dt-picker-item//date-container[position()=3]
Click Element xpath=//dt-picker-item//time-picker//span[position()=3]
Capture Page Screenshot
Click Element xpath=//dt-picker-item//head-button/button[@ng-click='ok()']
选择支付方式
Wait Until Keyword Succeeds 10 3 Click Element xpath=//div[@id='order-commit-paytype']/label[@ng-value='88003']
Capture Page Screenshot
选择服务地址
Capture Page Screenshot
Wait Until Keyword Succeeds 10 3 Click Element xpath=//div[@class='list-content' and @ng-click='chooseAddress()']
等待进入页面完成 address-book 地址簿
focus xpath=//div[@class='item' and @ng-click='goAddressAdd()']
Wait Until Keyword Succeeds 10 3 Click Element xpath=//div[@class='item' and @ng-click='goAddressAdd()']
等待进入页面完成 address-add 地址详情
Wait Until Keyword Succeeds 10 3 input text xpath=//ion-view[@id='address-add']//input[@name='inputName'] 测试
input text xpath=//ion-view[@id='address-add']//input[@name='inputTel'] 18017629872
input text xpath=//ion-view[@id='address-add']//input[@name='inputDetailAddr'] 唐镇111号
Click Element xpath=//ion-view[@id='address-add']//div/label[@class='toggle']
Click Element xpath=//ion-view[@id='address-add']//label[@ng-click='goPickRegion()']
等待进入页面完成 pick-region 省
Wait Until Keyword Succeeds 10 3 Click Element xpath=//ion-view[@id='pick-region']//div[@ng-click='goPickRegion(region.code, region.name)']
Wait Until Keyword Succeeds 10 3 等待进入页面完成 pick-region 市
Wait Until Keyword Succeeds 10 3 Click Element xpath=//ion-view[@id='pick-region']//div[@ng-click='goPickRegion(region.code, region.name)']
等待进入页面完成 pick-region 区
Wait Until Keyword Succeeds 10 3 Click Element xpath=//ion-view[@id='pick-region']//div[@ng-click='goPickRegion(region.code, region.name)']
等待进入页面完成 address-add 地址详情
Wait Until Keyword Succeeds 10 3 Click Element xpath=//ion-view[@id='address-add']//ion-header-bar/div[@class='buttons' and position()=2]/button
等待进入页面完成 address-book 地址簿
Wait Until Keyword Succeeds 10 3 Click Element xpath=//div[@class='list']/ion-item[position()=1]
提交订单
等待进入页面完成 order-commit 提交订单
Wait Until Keyword Succeeds 10 3 Click Element order-commit-submit
确认订单信息
等待进入页面完成 order-commit 提交订单成功
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/budaipet/jl-auto-test.git
git@gitee.com:budaipet/jl-auto-test.git
budaipet
jl-auto-test
jl-auto-test
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385