예제 #1
0
        //Enter the Description in Profile Section
        internal void AddDescription()
        {
            EditDescription.Click();
            Thread.Sleep(1000);
            EnterDescription.Clear();
            EnterDescription.SendKeys(ExcelLib.ReadData(2, "Description"));
            SaveDescription.Click();
            Base.Image = SaveScreenShotClass.SaveScreenshot(Driver, "Report");

            //Validate message
            Extension.MessageValidation("Description has been saved successfully");
        }
예제 #2
0
        public void AddingOperation(string Description, string Quantity)
        {
            EnterDescription.SendKeys(Keys.Control + "A");
            EnterDescription.SendKeys(Keys.Delete);
            EnterDescription.SendKeys(Description);
            EnterQuantity.Clear();
            EnterQuantity.SendKeys(Quantity);
            EnterDescription.SendKeys(Keys.Tab);
            string unitPrice = UnitPrice.GetText();

            Console.WriteLine(unitPrice);
            CustomWait.WaitFortheLoadingIconDisappear2000();
            string salesPriceAmount = SalesPriceAmount.GetText();

            Console.WriteLine(salesPriceAmount);
            AddRowInOperation.Click();
            CustomWait.WaitFortheLoadingIconDisappear2000();
            DeleteRowInOperation.Click();
        }