Exemplo n.º 1
0
        public static void CaseCareUnpalnnedContract()
        {
            CaseCActivities   contract = new CaseCActivities();
            CareServiceOrders contact  = new CareServiceOrders();

            Thread.Sleep(2000);
            contract.CaseCUnplanContractIndicator.Click();
            Thread.Sleep(1000);
            contract.CarinaSubscriber.Click();
            Thread.Sleep(1000);
            contract.Care.Click();
            Thread.Sleep(2000);
            contract.CaseCUnplanContractIndicator.Click();
            Thread.Sleep(1000);
            contract.EndButton.Click();
            Thread.Sleep(1000);
            WorkOrder = Driver.driver.FindElement(By.CssSelector("#avista-global-container > div > div.container"));
            Console.WriteLine(WorkOrder.Text.Trim());
            Thread.Sleep(1000);
            contract.SaveButton.Click();
            Thread.Sleep(1000);
            contact.LogoutButton.Click();
            Thread.Sleep(1000);
            contact.Logout.Click();
        }
Exemplo n.º 2
0
        public static void CaseCUnplannedTask()
        {
            CaseCActivities   activit  = new CaseCActivities();
            CareServiceOrders activity = new CareServiceOrders();

            Thread.Sleep(2000);
            activit.CaseCUnplanned.Click();
            Thread.Sleep(1000);
            activit.StartAndEnd.Click();
            Thread.Sleep(1000);
            activit.TopSubscriber.Click();
            Thread.Sleep(1000);
            activit.KeyCustomer.Click();
            Thread.Sleep(1000);
            WorkOrder = Driver.driver.FindElement(By.CssSelector("#avista-global-container > div > div.container"));
            if (WorkOrder.Text.Trim() == "Sorry. Activities not found")
            {
                Console.WriteLine("Sorry. Activities not found!");
                //activit.Activities.Click();
                //Thread.Sleep(1000);
            }
            else
            {
                activit.Activities.Click();
                Thread.Sleep(1000);
                Console.WriteLine(WorkOrder.Text.Trim() + "\n");
            }

            Thread.Sleep(1000);
            activit.BackButton.Click();
            Thread.Sleep(1000);
            activity.LogoutButton.Click();
            Thread.Sleep(1000);
            activity.Logout.Click();
        }
Exemplo n.º 3
0
        public static void CaseCSecondDeliveryWorkOrder()
        {
            CaseCActivities   order    = new CaseCActivities();
            CareServiceOrders contacts = new CareServiceOrders();

            Thread.Sleep(1000);
            order.CMyWorkOrderTasks.Click();
            Thread.Sleep(1000);
            order.SecondDelivery.Click();
            Thread.Sleep(1000);
            order.StartandEndCheckBox.Click();
            Thread.Sleep(1000);
            order.StartDeliveryButton.Click();
            Thread.Sleep(1000);
            WorkOrder = Driver.driver.FindElement(By.CssSelector("#avista-global-container > div > div.container"));
            Console.WriteLine(WorkOrder.Text.Trim());
            Thread.Sleep(1000);
            order.BackToDeliveries.Click();
            Thread.Sleep(1000);
            order.BackToList.Click();
            Thread.Sleep(1000);
            order.BackMenu.Click();
            Thread.Sleep(1000);
            contacts.LogoutButton.Click();
            Thread.Sleep(1000);
            contacts.Logout.Click();
        }