Closed 3lang3 closed 1 year ago
This is my code, throw error always:
Waiting for selector .//button[contains(text(), 'Sign')] failed: Waiting failed: 200ms exceeded
.//button[contains(text(), 'Sign')]
const { browser,metaMask } = await dappeteer.bootstrap({ seed, }); const dappPage = await browser.newPage(); await dappPage.goto('https://blur.io/airdrop#1'); const openWalletsModal = await dappPage.$('button'); await openWalletsModal?.click(); await new Promise(r => setTimeout(r, 3000)); const signButton = await dappPage.$('#METAMASK') await signButton?.click(); await new Promise(r => setTimeout(r, 5000)); await metaMask.sign();
System:
my bad. Cloudfare security .
btw, It's possible support puppeteer instance as argument?
This is my code, throw error always:
System: