public ColorPickerWCModel GetFullColorPickerModel() { AllRowsWithColorsWCModel rows = GetAllRowsWithColors(); allColorsInSingleRowWCModel colors = GetColorsFromSingleRow(); RightPanelColorPickerWCModel rightPanel = GetRightPanelColorPickerModel(); ColorPickerWCModel model = new ColorPickerWCModel(rows, colors, rightPanel); return(model); }
private allColorsInSingleRowWCModel GetColorsFromSingleRow() { allColorsInSingleRowWCModel allColorsInSingleRow = new allColorsInSingleRowWCModel(_manager.Driver); var singleRow = GetSingleRowsWithColors(); var colors = _manager.FindWebElements(By.ClassName(ColorPickerLocators.singleColorLocator)); foreach (var singleColor in colors) { allColorsInSingleRow.allColorsInSingleRow.Add(new SingleColorWCModel(singleColor)); } return(allColorsInSingleRow); }
public ColorPickerWCModel(AllRowsWithColorsWCModel allRowsWithColorsWCModels, allColorsInSingleRowWCModel allColors, RightPanelColorPickerWCModel rightPanel) { this.allRowsWithColorsWCModels = allRowsWithColorsWCModels; this.allColors = allColors; this.rightPanel = rightPanel; }