Switch To Frame

This method is used to switch to the tabbed/pop up windows. Need to pass the index or title of the window as parameters.


Syntax :

S.SwitchTo.Frame(index);Index indicates the frame index. Index starts from the 0.  
S.SwitchTo.Frame("frameName"); Focus switches to the frame using the frame name. 
S.SwitchTo.DefaultContent();Focus switches out of all the frames to window 
S.SwitchTo.ParentFrame();Focus switches to the previous frame.