Esempio n. 1
0
        public void SetUp_ByBrowserVersion_Unsupported(string browserName, string version)
        {
            var builder = DriverSetup.Configure(browserName)
                          .ByBrowserVersion(version);

            Assert.Throws <DriverSetupException>(() =>
                                                 builder.SetUp());
        }
Esempio n. 2
0
        public void SetUp_WithVersion(string browserName, string version)
        {
            var result = DriverSetup.Configure(browserName)
                         .WithVersion(version)
                         .SetUp();

            AssertDriverIsSetUp(result, browserName, version);
        }
Esempio n. 3
0
        public void SetUp_WithLatestVersion(string browserName)
        {
            var result = DriverSetup.Configure(browserName)
                         .WithLatestVersion()
                         .SetUp();

            AssertDriverIsSetUp(result, browserName);
            AssertVersionCache(browserName);
        }
Esempio n. 4
0
        public void SetUp_WithAutoVersion_WithX32Architecture(string browserName)
        {
            var result = DriverSetup.Configure(browserName)
                         .WithAutoVersion()
                         .WithX32Architecture()
                         .SetUp();

            AssertDriverIsSetUp(result, browserName, architecture: Architecture.X32);
            AssertVersionCache(browserName);
        }