Пример #1
0
        public ColorPickerWCModel GetFullColorPickerModel()
        {
            AllRowsWithColorsWCModel     rows       = GetAllRowsWithColors();
            allColorsInSingleRowWCModel  colors     = GetColorsFromSingleRow();
            RightPanelColorPickerWCModel rightPanel = GetRightPanelColorPickerModel();
            ColorPickerWCModel           model      = new ColorPickerWCModel(rows, colors, rightPanel);

            return(model);
        }
Пример #2
0
        private RightPanelColorPickerWCModel GetRightPanelColorPickerModel()
        {
            IWebElement                  colorSquare     = _manager.FindWebElement(By.ClassName(ColorPickerLocators.colorSquareLocator));
            IWebElement                  submintButton   = _manager.FindWebElement(By.ClassName(ColorPickerLocators.submitButtonLocator));
            IWebElement                  cancelButton    = _manager.FindWebElement(By.ClassName(ColorPickerLocators.cancelButtonLocator));
            ColorSliderWCModel           slider          = GetPickerSliderModel();
            RightPanelColorPickerWCModel rightPanelModel = new RightPanelColorPickerWCModel(_manager.Driver, colorSquare, cancelButton, submintButton, slider);

            return(rightPanelModel);
        }
Пример #3
0
 public ColorPickerWCModel(AllRowsWithColorsWCModel allRowsWithColorsWCModels, allColorsInSingleRowWCModel allColors, RightPanelColorPickerWCModel rightPanel)
 {
     this.allRowsWithColorsWCModels = allRowsWithColorsWCModels;
     this.allColors  = allColors;
     this.rightPanel = rightPanel;
 }