Selenium Tutorial series | Sinhala | PART 11 - Handling Frames/iFrames & Nested iFrames

Опубликовано: 18 Март 2026
на канале: Learn Automation In Sinhala
1,248
43

Iframes are nothing but inner HTML pages embedded within another HTML page. They are usually embedded within the iframe tag. We can't directly interact with them unlike we deal with the regular DOM objects. We have to switch to the particular frame and handle the elements inside the frames.

Topics Covered
-------------------------------
1. How to identify if an element is present inside a frame or not?
2. How to switch to iframes?
3. How to switch back to normal content?
4. Working with nested frames
5. Finding the number of frames inside a web page

Extra Topic Covered
-------------------------------
The get text method may not capture the text in some scenarios
Understanding the difference between getText and getAttribute methods
Understanding get text method and get attribute in Selenium with Java

Support by donating:
---------------------------------
Best way to reach me (replies will be faster): YouTube comment section
👤 Name : Hashir Hasmy
📱 LinkedIn :   / mohamed-hashir-370840198  
📧 Email : [email protected]
🔗 GitHub : https://github.com/hashirhasmy

#selenium #Java #iframes #Sinhala #HashirHasmy #webAutomation