代码拉取完成,页面将自动刷新
*** 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 提交订单成功
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。