public void ControllingBrowserInstance() { Manager.LaunchNewBrowser(); ActiveBrowser.NavigateTo(Path.Combine(TestContext.TestDeploymentDir, TESTPAGE)); Assert.IsTrue(ActiveBrowser.Url.Contains("Browser.htm")); // Now navigate to www.google.com ActiveBrowser.NavigateTo("http://www.bing.com"); Assert.IsTrue(ActiveBrowser.Url.Contains("bing.com")); // Now go back. ActiveBrowser.GoBack(); Assert.IsTrue(ActiveBrowser.Url.Contains("Browser.htm")); // Now go forward ActiveBrowser.GoForward(); Assert.IsTrue(ActiveBrowser.Url.Contains("bing.com")); // Do a Refresh() ActiveBrowser.Refresh(); Assert.IsTrue(ActiveBrowser.Url.Contains("bing.com")); }