コード例 #1
0
        public static void Setup(TestContext testContext)
        {
            var options = new FirefoxOptions
            {
                PageLoadStrategy = PageLoadStrategy.Eager
            };

            CurrentBrowser = Browser.Firefox;
            TestDriver     = new SeleniumDemoWebDriver(CurrentBrowser, options);
            Directory.SetCurrentDirectory(testContext.TestRunResultsDirectory);
            Waiter.BrowserUpdate = 1500;
        }
コード例 #2
0
        public static void Setup(TestContext testContext)
        {
            var options = new EdgeOptions
            {
                PageLoadStrategy = PageLoadStrategy.Default
            };

            CurrentBrowser = Browser.Edge;
            TestDriver     = new SeleniumDemoWebDriver(CurrentBrowser, options);
            TestDriver.Manage().Window.Maximize();
            Directory.SetCurrentDirectory(testContext.TestRunResultsDirectory);
            Waiter.BrowserUpdate = 2500;
        }
コード例 #3
0
        public static void Setup()
        {
            var options = new FirefoxOptions
            {
                PageLoadStrategy = PageLoadStrategy.Default
            };

            CurrentBrowser = Browser.Firefox;
            TestDriver     = new SeleniumDemoWebDriver(CurrentBrowser, options);
            TestDriver.Manage().Window.Size = new Size(1280, 768);
            TestDriver.Manage().Window.Position = new Point(0, 0);

            Waiter.BrowserUpdate = 2000;

            SetupTestOutputFolder();

            Directory.SetCurrentDirectory(TestOutputFolder);
        }