Switching to a Parent Frame in a webpage using Selenium C#

To switch to a parent Frame in a Webpage all you have to use is the below code

 

// Switching to an iFrame or frame inside a Webpage using Selenium and C#



//Code
Driver.SwitchTo().ParentFrame


 /*The above code should be only used when you are on the frame page otherwise it 
will lead to an error */

 

You may also like...