fill form of popup or prompted window in pyppeteer python

570 Views Asked by At

I am using pyppeteer in python to do some automation.Everything was fine until i got one form in popup window which i am trying to fill, i am not able to take control of that popup/prompted form. I tried to get control of this popup by using pages() function but not able to get control and Can someone please check this issue.I am new to pyppeteer.

await page.click("#popuplink_id")
pages = await browser.pages()
popup = pages[len(pages) - 1]
await popup.bringToFront()
await page.waitForSelector('#popup_text_box_id', { 'visible': 'true' })
await popup.type('#popup_text_box_id','value')
0

There are 0 best solutions below