示例#1
0
        public void ElementChengedColor_When_MoveElementToTarget()
        {
            _droppablePage.SourceBox.Click();

            Builder.DragAndDrop(_droppablePage.SourceBox, _droppablePage.TargetBox).Perform();
            var colorAfter = _droppablePage.TargetBox.GetCssValue("background-color");

            _droppablePage.AssertExactColor("rgba(70, 130, 180, 1)", colorAfter);
        }
        public void ElementChengedColor_When_MoveElementToTarget()
        {
            //Arrange
            _droppablePage.SourceBox.Click();

            //Act
            _droppablePage.DragAndDrop(_droppablePage.SourceBox, _droppablePage.TargetBox);
            string colorAfter = _droppablePage.TargetBox.GetCssValue("background-color");

            //Assert
            _droppablePage.AssertExactColor("rgba(70, 130, 180, 1)", colorAfter);
        }