Exemplo n.º 1
0
        //   [Fact]
        public void TestingParallelTest()
        {
            Task.Run(() => {
                SeleniumDriver.InitDriver1();
                SeleniumDriver.driver1.Navigate().GoToUrl("https://abtassoc-test.webex.com");
                SeleniumDriver.driver1.SwitchTo().Frame("header");
                SeleniumDriver.driver1.FindElement(By.Id("wcc-lnk-loginLink")).Click();
                new WebDriverWait(SeleniumDriver.driver1, TimeSpan.FromSeconds(10)).Until(e => SeleniumDriver.driver1.FindElement(By.Id("btn_join_room")).Displayed);
                Console.WriteLine("webex response1:" + (DateTime.Now.Ticks / TimeSpan.TicksPerMillisecond - DateTime.Now.Ticks / TimeSpan.TicksPerMillisecond));
            });

            SeleniumDriver.InitDriver2();
            SeleniumDriver.driver2.Navigate().GoToUrl("https://abtassoc-test.webex.com");
            SeleniumDriver.driver2.SwitchTo().Frame("header");
            SeleniumDriver.driver2.FindElement(By.Id("wcc-lnk-loginLink")).Click();
            new WebDriverWait(SeleniumDriver.driver2, TimeSpan.FromSeconds(10)).Until(e => SeleniumDriver.driver2.FindElement(By.Id("btn_join_room")).Displayed);
            Console.WriteLine("webex response1:" + (DateTime.Now.Ticks / TimeSpan.TicksPerMillisecond - DateTime.Now.Ticks / TimeSpan.TicksPerMillisecond));
        }