Beispiel #1
0
        public void TestAwardsAndReleasesIsShownInformation()
        {
            GraphPage page = new GraphPage(driver);

            foreach (var element in page.AwardsAndReleases)
            {
                GraphActions.MoveMouseToAward(page, driver, element);
                GraphStates.InformationIsDisplayed(page, page.TextInformation, driver);
            }
        }
Beispiel #2
0
        public void TestGraphOfEmployees()
        {
            GraphPage    page = new GraphPage(driver);
            List <int[]> list = GraphActions.CoordinatesOfPoints(page, page.PointsOfGraphEmployees, 4);

            page.OpenCloseGraphs[2].Click();
            page.OpenCloseGraphs[0].Click();
            GraphActions.MoveToPosition(page.Graphs, driver);
            GraphActions.MoveToPosition(0, list[0][1], driver);
            GraphActions.MoveToPosition(list[0][0], 0, driver);
            for (int i = 0; i < list.Count - 1; i++)
            {
                int offsetx = list[i + 1][0] - list[i][0];
                int offsety = list[i + 1][1] - list[i][1];
                GraphActions.MoveToPosition(0, offsety, driver);
                var CountOfEmployees = GraphActions.TextFromTspan(page, driver, "employees");
                GraphActions.MoveToPosition(offsetx, 0, driver);
                GraphStates.CheckPositionOfPoints(page, CountOfEmployees, list[i][1]);
            }
        }
Beispiel #3
0
        public void TestGraphOfRevenue()
        {
            GraphPage page = new GraphPage(driver);

            page.OpenCloseGraphs[3].Click();
            page.OpenCloseGraphs[0].Click();
            GraphActions.MoveToPosition(page.Graphs, driver);
            Waiters.waitForVisibilityElement(By.CssSelector("g.highcharts-series.highcharts-series-1"), driver);
            List <int[]> list = GraphActions.CoordinatesOfPoints(page, page.PointsOfGraphRevenue, 2);

            GraphActions.MoveToPosition(list[0][0], 1, driver);
            for (int i = 0; i < list.Count - 1; i++)
            {
                int offsetx   = list[i + 1][0] - list[i][0];
                var BestMonth = GraphActions.TextFromTspan(page, driver, "month");
                GraphStates.InformationAboutPercentsIsDisplayed(BestMonth);
                GraphActions.MoveToPosition2(offsetx, 0, driver);
                if (i == list.Count - 2)
                {
                    BestMonth = GraphActions.TextFromTspan(page, driver, "%");
                    GraphStates.InformationAboutPercentsIsDisplayed(BestMonth);
                }
            }
        }
 internal GraphActionsProxy(GraphActions actions) : base(actions)
 {
     GraphActions = actions;
 }
 internal static GraphActionsProxy GraphActionsProxy(GraphActions actions)
 {
     return(new GraphActionsProxy(actions));
 }