Authored by 孟顺

修改AccessibilityId

... ... @@ -32,13 +32,13 @@ describe(iOS_BUSINESS_SHOPPING,'购物车', async(driver) => {
touchTab = await driver.waitForElementByAccessibilityId('确定', 2000);//下单
await touchTab.click();
touchTab = await driver.waitForElementByAccessibilityId('shared back icon', 2000);//返回
touchTab = await driver.waitForElementByAccessibilityId('yh_base_vc_back_btn', 2000);//返回
await touchTab.click();
touchTab = await driver.waitForElementByAccessibilityId('确认离开', 2000);//返回
await touchTab.click();
touchTab = await driver.waitForElementByAccessibilityId('shared back icon', 2000);//返回
touchTab = await driver.waitForElementByAccessibilityId('yh_base_vc_back_btn', 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);//下单
... ...
... ... @@ -10,7 +10,7 @@ describe(iOS_TAB_MINE,'我的', async(driver) => {
touchTab = await driver.waitForElementByXPath('/XCUIElementTypeApplication[@name="Yoho!Buy有货"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell[7]/XCUIElementTypeOther/XCUIElementTypeOther[1]',2000);
await touchTab.click();
touchTab = await driver.waitForElementByAccessibilityId('shared back icon', 2000);
touchTab = await driver.waitForElementByAccessibilityId('yh_base_vc_back_btn', 2000);
await touchTab.click();
touchTab = await driver.waitForElementByXPath('/XCUIElementTypeApplication[@name="Yoho!Buy有货"]/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell[7]/XCUIElementTypeOther/XCUIElementTypeOther[2]',2000);
... ... @@ -19,7 +19,7 @@ describe(iOS_TAB_MINE,'我的', async(driver) => {
touchTab = await driver.waitForElementByAccessibilityId('我的收入', 2000);
await touchTab.click();
touchTab = await driver.waitForElementByAccessibilityId('market back', 2000);
touchTab = await driver.waitForElementByAccessibilityId('yh_base_vc_back_btn', 2000);
await touchTab.click();
touchTab = await driver.waitForElementByAccessibilityId('商家入驻', 2000);
... ... @@ -31,7 +31,7 @@ describe(iOS_TAB_MINE,'我的', async(driver) => {
await touchTab.click();
}
touchTab = await driver.waitForElementByAccessibilityId('market back', 2000);
touchTab = await driver.waitForElementByAccessibilityId('yh_base_vc_back_btn', 2000);
await touchTab.click();
});
\ No newline at end of file
... ...