コード例 #1
0
        public void BrowsersOpenTestSuccessTest()
        {
            scripter = new Scripter();
            scripter.InitVariables.Clear();
            scripter.Text = $@"
                selenium.open type {SpecialChars.Text}chrome{SpecialChars.Text}
                selenium.open type {SpecialChars.Text}firefox{SpecialChars.Text}
                selenium.open type {SpecialChars.Text}ie{SpecialChars.Text}
                selenium.open type {SpecialChars.Text}firefox{SpecialChars.Text}
                selenium.open type {SpecialChars.Text}firefox{SpecialChars.Text}
                selenium.open type {SpecialChars.Text}ie{SpecialChars.Text}
                selenium.open type {SpecialChars.Text}chrome{SpecialChars.Text}
                selenium.open type {SpecialChars.Text}chrome{SpecialChars.Text}
                selenium.open type {SpecialChars.Text}edge{SpecialChars.Text}";
            scripter.Run();

            Assert.AreEqual(3, SeleniumTests.FirefoxGetInstancesCount());
            Assert.AreEqual(3, SeleniumTests.ChromeGetInstancesCount());
            Assert.AreEqual(2, SeleniumTests.IeGetInstancesCount());
            Assert.IsTrue(SeleniumTests.EdgeGetInstancesCount() > 0);
        }
コード例 #2
0
 public void CleanUp()
 {
     SeleniumTests.KillAllBrowserProcesses();
 }