public void CheckSynchronizationWithAngularFuctionality()
        {
            var driverContext = new DriverContext {
                CurrentDirectory = TestContext.CurrentContext.TestDirectory
            };

            driverContext.Start();
            var Default_false = DriversCustomSettings.IsDriverSynchronizationWithAngular(driverContext.Driver);

            driverContext.Driver.SynchronizeWithAngular(true);
            var TurnOn_true = DriversCustomSettings.IsDriverSynchronizationWithAngular(driverContext.Driver);

            driverContext.Driver.SynchronizeWithAngular(false);
            var TurnOn_false = DriversCustomSettings.IsDriverSynchronizationWithAngular(driverContext.Driver);

            driverContext.Stop();
            Assert.False(Default_false, "Default setting is not false");
            Assert.True(TurnOn_true, "Setting is not true");
            Assert.False(TurnOn_false, "Setting is not false");
        }
Esempio n. 2
0
        public static void BeforeClass()
        {
            var id = Thread.CurrentThread.ManagedThreadId.ToString() ?? "";

            if (!Drivers.ContainsKey(id))
            {
                try
                {
                    var baseDir = AppDomain.CurrentDomain.BaseDirectory;
                    var driver  = new DriverContext
                    {
                        CurrentDirectory = baseDir
                    };
                    Drivers[id] = driver;
                    driver.Start();
                }
                catch
                {
                    throw;
                }
            }
        }
Esempio n. 3
0
 public void SetUp()
 {
     driverContext.Start();
     driverContext.Driver.Manage().Window.Maximize();
 }
 public void Setup()
 {
     _driverContext.Start();
     Driver = _driverContext.Driver;
 }