Exemplo n.º 1
0
        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"));
            }
        }
Exemplo n.º 2
0
        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"));
            }
        }
Exemplo n.º 3
0
        //[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();
        }