Загрузка...

Iframe in Selenium WebDriver (Selenium Course) - Lecture 19

In this video tutorial, we are going to learn how to handle iframe in a webpage. A web page that is embedded in another web page or an HTML document embedded inside another HTML document is known as a frame. The IFrame is often used to insert content from another source, such as an advertisement, into a Web page. The iframe tag specifies an inline frame. We can identify the iframes using methods given below: → Right-click on the element, If you find the option like 'This Frame' then it is an iframe.. → Right click on the page and click 'View Page Source' and Search with the 'iframe', if you can find any tag name with the 'iframe' then it is meaning to say the page consisting an iframe. How to switch over the elements in iframes using Web Driver commands: Basically, we can switch over the elements in frames using 3 ways. → By Index → By Name or Id → By Web Element Switch to the frame by index: An index is one of the attributes for the Iframe through which we can switch to it. Index of the iframe starts with '0'. Suppose if there are 100 frames on the page, we can switch to the iframe by using index. → driver.switchTo().frame(0); → driver.switchTo().frame(1); Switch to the frame by Web Element: We can even switch to the iframe using web element . → driver.switchTo().frame(WebElement); How to switch back to the Main Frame We have to come out of the iframe. To move back to the parent frame, you can either use switchTo().parentFrame() or if you want to get back to the main (or most parent) frame, you can use switchTo().defaultContent(); For more details: www.programmingline.com/selenium/iframehandling #ProgrammingLine #Rakesh #SeleniumCourse ******************************************************* Java Course: https://www.youtube.com/playlist?list=PL8Ebq9vQ5tqb_6G3bTZqCi_QpqbfYBT1C Python Course: https://www.youtube.com/playlist?list=PL8Ebq9vQ5tqZeR0vh17mom5SnK_0UMNQj Software Design Patterns Course: https://www.youtube.com/playlist?list=PL8Ebq9vQ5tqbZW1VQcfU1kwjMkFRE-XGp OOPs Course: https://www.youtube.com/playlist?list=PL8Ebq9vQ5tqZgXIFJ3fluzhGLfDDA6Gb0 NLP Course: https://www.youtube.com/playlist?list=PL8Ebq9vQ5tqaJvnXLGpJZasxzAb6VC-bK Software Interview Tips: https://www.youtube.com/playlist?list=PL8Ebq9vQ5tqYOvvxyI06IQCN9qrkDNcdH Important Links: Skillshare - Best Online Learning Platform (2 Free Months of Premium Membership): https://programmingline.com/skillshare Java Course: https://programmingline.com/java-course Software Design Patterns Course: https://programmingline.com/software-design-patterns-course Object Oriented Programming (OOPs) Course: https://programmingline.com/oops Best Books for Software Courses: https://programmingline.com/best-books-for-software-courses Campus Interview: https://programmingline.com/campus-interview How to crack the programming aptitude round?: https://programmingline.com/how-to-crack-the-programming-aptitude-round ******************************************************* Subscribe my YouTube channels: ► Subscribe https://www.youtube.com/channel/UCXzJdPwNAr2GbXnxoxBYzDA?sub_confirmation=1 channel for watching Software Related courses like Java, Software Design Patterns, OOPs, and etc in Telugu. ► Subscribe https://www.youtube.com/channel/UChEO9wBuI1_FtBsVmFL8qBA/example?sub_confirmation=1 channel for watching Income Tax saving schemes and Stock Market related videos. ► Subscribe https://www.youtube.com/channel/UCBCCLK1wGt1FkGbEkv9Rb6w/example?sub_confirmation=1 channel for watching Terrace Gardening Tips, Unboxing products, and Random videos in Tamil, Telugu, and English. Website: www.programmingline.com FaceBook page: https://www.facebook.com/programminglineofficial Instagram: https://www.instagram.com/programmingline Twitter: https://twitter.com/programmingline *******************************************************

Видео Iframe in Selenium WebDriver (Selenium Course) - Lecture 19 автора PythonExpress
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять