public void Comps_Graph_S04_TC01_CanToggleArrowWorkInSmallDocumentaionPage()
        {
            int currentWidth  = 0;
            int currentHeight = 0;

            GraphBrowser.GetWindowSize(out currentWidth, out currentHeight);
            GraphPages.Navigation.Select("Documentation");

            Size windowSize;
            //Set as the screen size of IPad2
            double deviceScreenSize = double.Parse(GraphUtility.GetConfigurationValue("IPad2Size"));

            GraphBrowser.TransferPhysicalSizeToPixelSize(
                deviceScreenSize,
                new Size
            {
                Width  = int.Parse(GraphUtility.GetConfigurationValue("IPad2ScreenResolutionWidth")),
                Height = int.Parse(GraphUtility.GetConfigurationValue("IPad2ScreenResolutionHeight"))
            },
                out windowSize);
            GraphBrowser.SetWindowSize(windowSize.Width, windowSize.Height);

            Assert.IsTrue(
                GraphUtility.IsToggleArrowDisplayed(),
                "An IPad2 window size ({0} inches) can make table of content arrow appear.",
                deviceScreenSize);
            Assert.IsFalse(GraphUtility.IsMenuContentDisplayed(),
                           "When the arrows exists, table of content should be hidden.");

            GraphUtility.ToggleMenu();
            Assert.IsTrue(GraphUtility.IsMenuContentDisplayed(),
                          "When the arrows exists and table of content is hidden,clicking the arrow should show table of content.");

            GraphUtility.ToggleMenu();
            Assert.IsFalse(GraphUtility.IsMenuContentDisplayed(),
                           "When the arrows exists and table of content is shown,clicking the arrow should hide table of content.");

            //Set as the screen size of IPhone6 plus
            deviceScreenSize = double.Parse(GraphUtility.GetConfigurationValue("IPhone6PlusSize"));
            //Since mobile phone width<Height, invert the output values
            GraphBrowser.TransferPhysicalSizeToPixelSize(
                deviceScreenSize,
                new Size
            {
                Width  = int.Parse(GraphUtility.GetConfigurationValue("IPhone6PlusScreenResolutionWidth")),
                Height = int.Parse(GraphUtility.GetConfigurationValue("IPhone6PlusScreenResolutionHeight"))
            },
                out windowSize);
            //Since mobile phone widh<height, invert height and width
            GraphBrowser.SetWindowSize(windowSize.Height, windowSize.Width);

            Assert.IsTrue(
                GraphUtility.IsToggleArrowDisplayed(),
                "An IPhone6 Plus window size ({0} inches) can make table of content arrow appear.",
                deviceScreenSize);

            //Recover the window size
            GraphBrowser.SetWindowSize(currentWidth, currentHeight);
        }
        public void Acceptance_Graph_S04_TC02_CanToggleArrowHideInLargeDocumentaionPage()
        {
            GraphPages.Navigation.Select("Documentation");
            int currentWidth  = 0;
            int currentHeight = 0;

            GraphBrowser.GetWindowSize(out currentWidth, out currentHeight);

            GraphBrowser.ZoomToPercent(50);
            if (GraphUtility.BrowserType == "IE32")
            {
                GraphBrowser.Wait(TimeSpan.FromSeconds(3));
            }

            Assert.IsFalse(
                GraphUtility.IsToggleArrowDisplayed(),
                "An large window size ({0} x {1}) can make table of content arrow hide.",
                currentWidth, currentHeight);

            //Change the zoom level back
            GraphBrowser.ZoomToPercent(100);
        }