Ejemplo n.º 1
0
        public void FillAirCooler()
        {
            GeneralNetworkData generalNetworkData = new GeneralNetworkData();

            generalNetworkData.fillGeneralNetworkData(generalNetworkData);

            Thread.Sleep(4000);

            NewCaseData newCaseData = new NewCaseData();

            newCaseData.FillNewCase(newCaseData);

            Thread.Sleep(4000);

            ShellAndTubeData shellAndTubeData = new ShellAndTubeData();

            shellAndTubeData.FillShellAndTube(shellAndTubeData);

            Thread.Sleep(4000);

            KettleReboilerData kettleReboilerData = new KettleReboilerData();

            kettleReboilerData.FillKettleReboiler(kettleReboilerData);

            Thread.Sleep(4000);

            AirCoolerData airCoolerData = new AirCoolerData();

            airCoolerData.FillAirCoolerCase(airCoolerData);
        }
Ejemplo n.º 2
0
        public void fillGeneralNetworkData(GeneralNetworkData generalNetworkData)
        {
            while (PropertyCollection.driver.FindElement(By.TagName("angular-loader")).FindElements(By.TagName("div")).Count > 0)
            {
            }
            newNet.Click();
            networkName1.SendKeys(generalNetworkData.NetworkName);
            customerName1.SendKeys(generalNetworkData.Customer);
            locationNetwork1.SendKeys(generalNetworkData.Location);
            unitNameNetwork1.SendKeys(generalNetworkData.UnitName);

            buttonOk.Click();
        }
Ejemplo n.º 3
0
        public void fillNetworkName(GeneralNetworkData generalNetworkData)
        {
            while (PropertyCollection.driver.FindElement(By.TagName("angular-loader")).FindElements(By.TagName("div")).Count > 0)
            {
            }

            newNet.Click();
            networkName1.SendKeys(generalNetworkData.NetworkName);
            buttonOk.Click();

            Thread.Sleep(2000);
            Assert.IsTrue(mandatoryFields.Displayed);
            Thread.Sleep(2000);

            OkButton.Click();
        }
Ejemplo n.º 4
0
        public void FillNetworkNameAndCancel(GeneralNetworkData generalNetworkData)
        {
            while (PropertyCollection.driver.FindElement(By.TagName("angular-loader")).FindElements(By.TagName("div")).Count > 0)
            {
            }
            newNet.Click();
            networkName1.SendKeys(generalNetworkData.NetworkName);

            Thread.Sleep(1500);

            cancelButton.Click();

            newNet.Click();

            Thread.Sleep(1500);

            //Console.WriteLine("network name" + networkName1.);
            Assert.IsTrue(networkName1.Text == string.Empty);
        }