try to set store via excel

This commit is contained in:
Lei PAN
2023-06-16 10:42:51 +02:00
parent 26036346cf
commit 5527ccecc2
3 changed files with 12 additions and 4 deletions
+4 -1
View File
@@ -441,7 +441,10 @@ class CommandorPage {
await delay(getRandomWaitTime())
try {
if (!this.page.isClosed() && !this.isTerminated) {
if (this.selectedStore !== "random") {
if (this.contact.store === undefined || this.contact.store.length === 0) {
this.contact.store = this.selectedStore;
}
if (this.contact.store !== "random") {
// page.focus(PREFER_STORE);
await delay(500)
// page.click(PREFER_STORE);