public void GoogleSearchWithEncodedQueryStringInConstructor() { var url = string.Format("http://www.google.com/search?q={0}", HttpUtility.UrlEncode("a+b")); using (var firefox = new FireFox(url)) { Assert.That(firefox.TextField(Find.ByName("q")).Value, Is.EqualTo("a+b")); } }
//[Test()] public void GoogleTest() { Browser firefox = new FireFox(); firefox.GoTo("http://www.google.com"); firefox.TextField(Find.ByName("q")).Value = "WatiN"; firefox.Button(Find.ByName("btnG")).Click(); Assert.IsTrue(firefox.ContainsText("WatiN")); firefox.Close(); }