Beispiel #1
0
        public void TestStyles()
        {
            App.NavigationService.Navigate("http://demos.bellatrix.solutions/");

            Select sortDropDown       = App.ElementCreateService.CreateByNameEndingWith <Select>("orderby");
            Anchor protonRocketAnchor = App.ElementCreateService.CreateByAttributesContaining <Anchor>("href", "/proton-rocket/");
            Anchor saturnVAnchor      = App.ElementCreateService.CreateByAttributesContaining <Anchor>("href", "/saturn-v/");

            sortDropDown.AssertFontSize("14px");
            sortDropDown.AssertFontWeight("400");
            sortDropDown.AssertFontFamily("\"Source Sans Pro\", HelveticaNeue-Light, \"Helvetica Neue Light\", \"Helvetica Neue\", Helvetica, Arial, \"Lucida Grande\", sans-serif");

            protonRocketAnchor.AssertColor("rgba(150, 88, 138, 1)");
            protonRocketAnchor.AssertBackgroundColor("rgba(0, 0, 0, 0)");
            protonRocketAnchor.AssertBorderColor("rgb(150, 88, 138)");

            protonRocketAnchor.AssertTextAlign("center");
            protonRocketAnchor.AssertVerticalAlign("baseline");
        }