private void go_to_registration_form(ChromeDriver browser, IISExpressDriver site) { browser.Navigate().GoToUrl(site.UrlFor("/Account/Register")); var iframe = browser.WaitForElementEx( BySizzle.CssSelector("iframe[src^=\"https://www.facebook.com/plugins/registration.php\"]"), Constants.MSLongWait); browser.SwitchTo().Frame(iframe); }