chooseStore from excel

This commit is contained in:
2023-06-16 10:55:18 +02:00
parent 5527ccecc2
commit 28c02f27c7
+1 -1
View File
@@ -448,7 +448,7 @@ class CommandorPage {
// page.focus(PREFER_STORE); // page.focus(PREFER_STORE);
await delay(500) await delay(500)
// page.click(PREFER_STORE); // page.click(PREFER_STORE);
let stores = this.selectedStore.split(":") let stores = this.contact.store.split(":")
this.choosedStore = stores[Math.floor(Math.random() * stores.length)] this.choosedStore = stores[Math.floor(Math.random() * stores.length)]
await page.select(PREFER_STORE, this.choosedStore); await page.select(PREFER_STORE, this.choosedStore);
} }