reset to faubourg store
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user