...
|
...
|
@@ -7,15 +7,13 @@ describe(iOS_BUSINESS_SHOPPING,'购物车', async(driver) => { |
|
|
let touchTab = await driver.waitForElementByXPath('//XCUIElementTypeApplication[@name="Yoho!Buy有货"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[4]',5000);
|
|
|
await touchTab.click();
|
|
|
|
|
|
// driver.execute('mobile: scroll', {direction: 'down', element: element.value.'BF000000-0000-0000-922D-000000000000'});
|
|
|
// await driver.sleep(3000);
|
|
|
|
|
|
touchTab = await driver.waitForElementByAccessibilityId('select',3000);//单选
|
|
|
await touchTab.click();
|
|
|
|
|
|
// touchTab = await driver.waitForElementByAccessibilityId('selectAll',3000);//全选
|
|
|
// await touchTab.click();
|
|
|
|
|
|
// touchTab = await driver.waitForElementByAccessibilityId('mealSelect',3000);//套餐
|
|
|
// await touchTab.click();
|
|
|
|
|
|
//'selectAll' 全选 'mealSelect' 套餐
|
|
|
touchTab = await driver.waitForElementByAccessibilityId('editCart',5000);//编辑
|
|
|
await touchTab.click();
|
|
|
|
...
|
...
|
@@ -33,17 +31,25 @@ describe(iOS_BUSINESS_SHOPPING,'购物车', async(driver) => { |
|
|
|
|
|
touchTab = await driver.waitForElementByAccessibilityId('确定', 2000);//下单
|
|
|
await touchTab.click();
|
|
|
|
|
|
touchTab = await driver.waitForElementByAccessibilityId('shared back icon', 2000);//返回
|
|
|
await touchTab.click();
|
|
|
|
|
|
////XCUIElementTypeApplication[@name="Yoho!Buy有货"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeTable/XCUIElementTypeCell[3]
|
|
|
touchTab = await driver.waitForElementByAccessibilityId('yh_paymentcenter_checked', 2000);//下单
|
|
|
touchTab = await driver.waitForElementByAccessibilityId('确认离开', 2000);//返回
|
|
|
await touchTab.click();
|
|
|
|
|
|
touchTab = await driver.waitForElementByAccessibilityId('支 付', 2000);//下单
|
|
|
touchTab = await driver.waitForElementByAccessibilityId('shared back icon', 2000);//返回
|
|
|
await touchTab.click();
|
|
|
////XCUIElementTypeApplication[@name="Yoho!Buy有货"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeTable/XCUIElementTypeCell[3]
|
|
|
// touchTab = await driver.waitForElementByAccessibilityId('yh_paymentcenter_checked', 2000);//下单
|
|
|
// await touchTab.click();
|
|
|
|
|
|
// touchTab = await driver.waitForElementByAccessibilityId('支 付', 2000);//拉起支付
|
|
|
// await touchTab.click();
|
|
|
|
|
|
await new Promise(r => {
|
|
|
setTimeout(() => {
|
|
|
r()
|
|
|
}, 2000);
|
|
|
}, 3000);
|
|
|
})
|
|
|
}); |
|
|
\ No newline at end of file |
...
|
...
|
|