Exemplo n.º 1
0
        private void ListViewMenu_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            UserControl usc = null;

            ContentGrid.Children.Clear();

            switch (((ListViewItem)((ListView)sender).SelectedItem).Name)
            {
            case "ItemCurrentTask":
                usc = new CurrentTasksView();
                ContentGrid.Children.Add(usc);
                break;

            case "ItemAllTasks":
                usc = new AllTasks();
                ContentGrid.Children.Add(usc);
                break;

            case "ItemCalender":
                usc = new CalenderView();
                ContentGrid.Children.Add(usc);
                break;

            default:
                break;
            }
        }
Exemplo n.º 2
0
        public void ChangeDate(string date, string month, string year)

        {
            WaitforIt(Properties.LittlePause);

            SelectCalender.Clicks();

            CalenderView.Clicks(); CalenderView.Clicks();

            SelectDdMmYy(year).Clicks();

            SelectDdMmYy(month).Clicks();

            SelectDdMmYy(date).Clicks();
        }
Exemplo n.º 3
0
        public void Userlogin(string FormId)
        {
            try
            {
                browserOps.Goto("https://uitesting.eb-test.site/");
                ul.UserName.SendKeys("*****@*****.**");
                ul.Password.SendKeys("@Kurian123");
                ul.LoginButton.Click();

                cv  = new CalenderView(driver);
                UID = new GetUniqueId();

                wait.Until(webDriver => (driver.PageSource.Contains("class=\"list-group-item inner_li Obj_link for_brd\"")));
                Console.WriteLine("Login Succesfull");

                FormSelect(FormId);
            }
            catch (Exception e)
            {
                Console.WriteLine("Faliure!!  " + e.Message + "Stack Trace" + e.StackTrace);
            }
        }