We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import puppeteer from "puppeteer"; import { solveCaptcha } from "nocaptchaai-puppeteer"; const API_KEY = "api_key"; const UID = "NO-NEED"; const main = async () => { const options = { headless: false, ignoreHTTPSErrors: true, }; const browser = await puppeteer.launch(options); const page = await browser.newPage(); await page.goto("https://solucoes.receita.fazenda.gov.br/Servicos/cnpjreva/cnpjreva_Solicitacao.asp"); await page.waitForNetworkIdle(); await page.waitForSelector('#cnpj'); await page.type('#cnpj', '02581711000122') await solveCaptcha(page, API_KEY, UID, "pro", true); console.log('solved') await page.click('.btn-primary') await new Promise(r => setTimeout(r, 5000)); await page.screenshot({ path: `cnpj-screenshot.jpg`, fullPage: true }); await browser.close(); }; main();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: