Skip to content

Commit

Permalink
feat(forefront): add loading wait time
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangsx committed Jun 8, 2023
1 parent 91af6ec commit 6d19f79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/forefront/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ export class Forefrontnew extends Chat {
console.log('register successfully');
account.login_time = moment().format(TimeFormat);
this.accountPool.syncfile();
await page.waitForSelector('.flex > .modal > .modal-box > .flex > .px-3:nth-child(1)', {timeout: 10000})
await page.waitForSelector('.flex > .modal > .modal-box > .flex > .px-3:nth-child(1)', {timeout: 120000})
await page.click('.flex > .modal > .modal-box > .flex > .px-3:nth-child(1)')
await page.waitForSelector('.relative > .flex > .w-full > .text-th-primary-dark > div', {timeout: 10000})
await page.waitForSelector('.relative > .flex > .w-full > .text-th-primary-dark > div', {timeout: 120000})
await this.allowClipboard(browser, page);
await Forefrontnew.switchToGpt4(page);
return [page, account, account.id];
Expand Down

0 comments on commit 6d19f79

Please sign in to comment.