selenium-webdriver Switching Frames To get out of a frame using C#


Example

To switch focus to either main document or first frame of the page. You have to use below syntax.

webDriver.SwitchTo().DefaultContent();