Ejemplo n.º 1
0
		public void BVT_Test()
		{
			Browsers.ChromeInstance instance = new Browsers.ChromeInstance(base.BrowserCapabilities);
			string url =  @"http://www.google.com";
			instance.NavigateTo(url);
			DefaultPage page = new DefaultPage();	
            string title = page.Title;
			instance.Quit();
		}
Ejemplo n.º 2
0
 /// <summary>
 /// Socials the links.
 /// </summary>
 /// <param name="ts">Ts.</param>
 /// <param name="instance">Instance.</param>
 public static void SocialLinks(BaseTestSuite ts)
 {            
     string url = "http://www.google.com/";
     Selenium.PageObjects.DefaultPage page = new Selenium.PageObjects.DefaultPage(url);
     string exceptions;
     const int expected = 5;
     StringBuilder failures = new StringBuilder();
     if (!page.VerifySocialShares(out exceptions, expected)) {
         failures.AppendLine(exceptions);
     }
     if (failures.ToString().Trim().Length > 0) {
         Assert.Fail(failures.ToString());
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Socials the links.
        /// </summary>
        /// <param name="ts">Ts.</param>
        /// <param name="instance">Instance.</param>
        public static void SocialLinks(BaseTestSuite ts)
        {
            string url = "http://www.google.com/";

            Selenium.PageObjects.DefaultPage page = new Selenium.PageObjects.DefaultPage(url);
            string        exceptions;
            const int     expected = 5;
            StringBuilder failures = new StringBuilder();

            if (!page.VerifySocialShares(out exceptions, expected))
            {
                failures.AppendLine(exceptions);
            }
            if (failures.ToString().Trim().Length > 0)
            {
                Assert.Fail(failures.ToString());
            }
        }