Esempio n. 1
0
        public void TestGetBackgroundColor()
        {
            var home = Start();

            var webButton = home.GetWebButton().ByID("body_MyWebButton1Sync");

            Assert.That(webButton.StyleInfo.GetBackgroundColor(), Is.EqualTo(WebColor.FromRgb(221, 221, 221)));
        }
Esempio n. 2
0
        public void TestCellGetBackgroundColor()
        {
            var home = Start();

            var bocList = home.GetList().ByLocalID("JobList_Normal");

            var cell1 = bocList.GetRow(1).GetCell(1);

            Assert.That(cell1.StyleInfo.GetBackgroundColor(), Is.EqualTo(WebColor.White));

            var cell2 = bocList.GetRow(2).GetCell(1);

            Assert.That(cell2.StyleInfo.GetBackgroundColor(), Is.EqualTo(WebColor.FromRgb(244, 244, 244)));
        }