Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

puppeteer sign in to popup facebook

    	await page.click('[service_name="facebook"]')
        const newPagePromise = new Promise(x => browser.once('targetcreated', target => x(target.page()))); 
        const popup = await newPagePromise;
        await popup.waitForSelector('[name="__CONFIRM__"]')
        const confirm = await popup.$('[name="__CONFIRM__"]')
        await popup.click('[name="__CONFIRM__"]')
        await page.waitFor(2000);
        await page.goto('your login page'); 
 
PREVIOUS NEXT
Tagged: #puppeteer #sign #popup #facebook
ADD COMMENT
Topic
Name
2+3 =