1 await page.click('[service_name="facebook"]')
2 const newPagePromise = new Promise(x => browser.once('targetcreated', target => x(target.page())));
3 const popup = await newPagePromise;
4 await popup.waitForSelector('[name="__CONFIRM__"]')
5 const confirm = await popup.$('[name="__CONFIRM__"]')
6 await popup.click('[name="__CONFIRM__"]')
7 await page.waitFor(2000);
8 await page.goto('your login page');