Nodejs Puppeteer Tutorial #15 - iFrame Handling

preview_player
Показать описание

In this video, I am showing you how to handle frames in Puppeteer. The frames in an html code are represented by the frames/iframe tag. Puppeteer can handle frames by switching from the main page to the frame. To work with elements inside a frame, first, we must identify the frame with the help of locators. The method contentFrame is used to access the elements inside the frame. We can also use the method frames which returns all frames from the page.

What is Puppeteer? Puppeteer is a Node library that provides a high-level API to control headless Chrome or Chromium over the DevTools Protocol. It can also be configured to use full (non-headless) Chrome or Chromium.

Donate
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Bitcoin Wallet: bc1q05j8gcnq4mzvgj603cxdc8xxck4jgnu2ljsrt4
Ethereum Wallet: 0x5e7BD4f473f153d400b39D593A55D68Ce80F8a2e

Social
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Tags:
- Nodejs Tutorial
- Puppeteer Nodejs
- Nodejs Puppeteer Tutorial
- Puppeteer Tutorial for Beginners

#nodejs #puppeteer #webscraping
Рекомендации по теме
Комментарии
Автор

Excellent explanation. I was trying to click a link in an iframe and for reasons unknown waitforselector didn't work but using the click directly on the framecontent works perfectly.

ViorelSima
Автор

Thanks, Michael! You save my project!

Drew
Автор

Hello Michael i have discovered you channel and it's great i love your content and the way you teach us.
I have a question about puppeter.
I try to access a power BI report to take a screenshot, but when i try to log in i have an issue with auth, is it possible to bypass Microsoft authenticator?
greetins

eliazarlopez
Автор

isnt using the dollar $ means the object might not exist yet?
might only work on local

Route-
Автор

Good day, tell me, please, is it possible to make a web interface for the pupepper, if so, how, and is there a desire to make a video on this topic?

igrovojimpotent
Автор

Hey Michael! Is it possible to make a tutorial Puppeteer and OpenSea? How to handle web browser extensions, how to work with Metamask etc.
Maybe you know any other tutorials on this topic, please help)
Thank you and good luck!

rrahll
Автор

how can you bypass normal captcha that is encoded with base64

ITEngines