public void ShouldBeAbleToSwitchToFocusedElement() { driver.Url = javascriptPage; driver.FindElement(By.Id("switchFocus")).Click(); IWebElement element = driver.SwitchTo().ActiveElement(); Assert.AreEqual("theworks", element.GetAttribute("id")); }