reset to faubourg store

This commit is contained in:
2022-09-18 13:35:58 +02:00
parent 02a62c3b75
commit d65c1742ff
2 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ const ContactPojo = require("../models/ContactPojo");
class ExcelUtil {
readContacts() {
let workSheetsFromFile = xlsx.parse('C:/Users/lei/Desktop/contact_all.xlsx');
let workSheetsFromFile = xlsx.parse('/Users/panlei/Desktop/contact_all.xlsx');
console.log(workSheetsFromFile);
// return a list of contactPojo
let contactList = [];
+11 -11
View File
@@ -192,17 +192,17 @@ class CommandorPage {
}
async chooseStore(page) {
// try {
// if (!page.isClosed()) {
// await page.locator(PREFER_STORE).focus()
// await delay(1000)
// await page.click(PREFER_STORE);
// await page.selectOption(PREFER_STORE, "faubourg");
// }
// } catch (e) {
// console.log(e);
// this.isTerminated = true;
// }
try {
if (!page.isClosed()) {
await page.locator(PREFER_STORE).focus()
await delay(1000)
await page.click(PREFER_STORE);
await page.selectOption(PREFER_STORE, "faubourg");
}
} catch (e) {
console.log(e);
this.isTerminated = true;
}
// await page.click(PREFER_STORE);
}