public void ShouldBeAbleToSwitchToAFrameByItsName() { driver.Url = framesetPage; driver.SwitchTo().Frame("fourth"); Assert.AreEqual("child1", driver.FindElement(By.TagName("frame")).GetAttribute("name")); }