示例#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 AllRowsWithColorsWCModel GetAllRowsWithColors()
        {
            AllRowsWithColorsWCModel result  = new AllRowsWithColorsWCModel();
            IList <IWebElement>      allRows = _manager.FindWebElements(By.XPath(ColorPickerLocators.singleRowLocator));

            foreach (var item in allRows)
            {
                result.allRows.Add(new SingleRowWithColorsWCModel(item));
            }
            return(result);
        }
示例#3
0
 public ColorPickerWCModel(AllRowsWithColorsWCModel allRowsWithColorsWCModels, allColorsInSingleRowWCModel allColors, RightPanelColorPickerWCModel rightPanel)
 {
     this.allRowsWithColorsWCModels = allRowsWithColorsWCModels;
     this.allColors  = allColors;
     this.rightPanel = rightPanel;
 }