Last active
February 26, 2022 19:38
-
-
Save Niweera/5bd5d3d29ae9508e2253e131da2fbd17 to your computer and use it in GitHub Desktop.
Mint the NFT on OpenSea
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mintNFT = async (browser, page) => { | |
const createButton = await page.$x('//button[contains(., "Create")]'); | |
await createButton[0].click(); | |
await page.waitForSelector( | |
"div.AssetSuccessModalContentreact__DivContainer-sc-1vt1rp8-1" | |
); | |
await page.waitForTimeout(10000); | |
const assetURL = page.url(); | |
await browser.close(); | |
return assetURL; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment