How to handle frames/iframes [Protractor Tutorial] | LetCode

preview_player
Показать описание
#letcode #protractor
In this video, I have discussed how to handle frames/iframes using Protractor.
Frames are used to create multiple documents within a page,
Most used to fetch external or internal data into different documents.
03:40 Also we'll learn how to update browser driver

Functions:
00:00 What is frame?
07:30 1. switchTo()
08:30 2. frame using index
09:54 3. frame using id
11:00 4. frame using name
12:00 5. frame using webElement
15:00 6. defaultContent
19:00 6. Exception

Source code:

Behind the screen,

Join our Facebook group,

Thanks for watching :)
Intro & Outro
music credit
song: To my soul
Channel search
letcode "letcode koushik" LetCode "letcode automation" "letcode javascript" "letcode chrome extension" "letcode protractor" "letcode testing" "letcode selenium" selenium protractor javascript "chrome extension" java "letcode java" "letcode youtube"
Рекомендации по теме
Комментарии
Автор

Thank you very much -- It was very helpful.

aakashpoly
Автор

The plugin which you have even to display the disabled it block are printed in the console, Can you please share the plugin/package used in this video ?

tejkumarkempaiah
Автор

I want to open a page which is on other link and display it inside the body of my page.I used iframe but it shows refused to connect.please suggest an alternate way to do so...plz

roshankapoor
Автор

Hi kaushik, I have a situation where the frame switch happens but content within the iframe doesn't load during execution .Tried with ample wait time but no effect on execution. Any workaround!?

lakshmii
Автор

Hello I kauashi whever I try to perform on frame switch on Amazon or any real time website I didn't understand actually which frame belongs to specific components which we want to test ? So how it can understand becoz there lots of frame in source whenever I inspect it.

poojapawatekar
Автор

The content is very useful. i am facing one issue like invalid selector and i am getting error like:"InvalidSelectorError: invalid selector: Unable to locate an element with the xpath expression because of the following error: SyntaxError: Failed to execute 'evaluate' on 'Document': The string '' is not a valid XPath expression." i have used the valid xpath even i have verified the parenthesis, brackets but finally showing this error. Could you please help me this..it will very useful if you make a video for that Hoping you will see and reply the comment . waiting for your reply Thanking you for the wonderful stuff

nagarjunamaddula