Ejemplo n.º 1
0
        public void AddWidget(string widgetName, string widget = "")

        {
            DashboardGear.WaitUntil(); DashboardGear.Clicks();

            EditDashboard.WaitUntil();  EditDashboard.Clicks();

            AddNewWidget.Clicks(); WaitforIt(Properties.LittlePause);

            ChooseChart(widgetName).Clicks(); WaitforIt(Properties.LittlePause);

            SaveDashboard.Clicks(); WaitforIt(Properties.LittlePause);

            DashboardGear.WaitUntil(); DashboardGear.Clicks();

            EditDashboard.WaitUntil(); EditDashboard.Clicks();

            ConfigureDashboard(widgetName).Clicks(); WaitforIt(Properties.LittlePause);

            if (widget != "" && widgetName != "Capacity")

            {
                Options("Basic").Clicks();

                Description.EnterText("...Description...");
            }
        }
Ejemplo n.º 2
0
        public void Apply()

        {
            ApplySettings.Clicks(); WaitforIt(Properties.LittlePause);

            SaveDashboard.Clicks();
        }
Ejemplo n.º 3
0
        public void DashboardInitialize(string dashboardName)

        {
            string timeStamp = DateTime.Now.ToString("d-MM-yyyy, HH:mm:ss");

            DashboardTab.Clicks(); WaitforIt(Properties.LittlePause);

            DashboardDropdown.Clicks(); WaitforIt(Properties.LittlePause);

            SelectDashboard("Add new").Clicks(); WaitforIt(Properties.LittlePause);

            DashboardName.WaitUntil();

            DashboardName.ClearText(); DashboardName.EnterText(" " + dashboardName + " " + timeStamp); WaitforIt(Properties.LittlePause);

            SaveDashboard.Clicks(); WaitforIt(Properties.LittlePause);

            /*AddNewWidget.Clicks(); WaitforIt(Properties.LittlePause);
             *
             * ChooseChart(widgetName).Clicks(); WaitforIt(Properties.LittlePause);
             *
             * SaveDashboard.Clicks(); WaitforIt(Properties.LittlePause);
             *
             * DashboardGear.WaitUntil();
             *
             * DashboardGear.Clicks();
             *
             * EditDashboard.WaitUntil();
             *
             * EditDashboard.Clicks();
             *
             * ConfigureDashboard(widgetName).Clicks(); WaitforIt(Properties.LittlePause);
             *
             * if (widget == "")
             *
             * {
             *  Options("Basic").Clicks();
             *
             *  Description.EnterText("...Description...");
             *
             * }*/
        }