Skip to content

Commit

Permalink
fix sign
Browse files Browse the repository at this point in the history
  • Loading branch information
BeroBurny committed Feb 17, 2021
1 parent 7178a10 commit af70295
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ export async function getMetamask(
}
await metamaskPage.reload()

const button = await metamaskPage.waitForSelector('.button:nth-child(2)')
const button = await Promise.race([
metamaskPage.waitForSelector('.request-signature__footer__sign-button'),
metamaskPage.waitForSelector('.signature-request-footer button:last-child'),
]);
await button.click()
},

Expand Down

0 comments on commit af70295

Please sign in to comment.