To switch focus to either main document or first frame of the page. You have to use below syntax.
webDriver.SwitchTo().DefaultContent();