public ColorPickerWCModel GetFullColorPickerModel() { AllRowsWithColorsWCModel rows = GetAllRowsWithColors(); allColorsInSingleRowWCModel colors = GetColorsFromSingleRow(); RightPanelColorPickerWCModel rightPanel = GetRightPanelColorPickerModel(); ColorPickerWCModel model = new ColorPickerWCModel(rows, colors, rightPanel); return(model); }
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); }
public ColorPickerWCModel(AllRowsWithColorsWCModel allRowsWithColorsWCModels, allColorsInSingleRowWCModel allColors, RightPanelColorPickerWCModel rightPanel) { this.allRowsWithColorsWCModels = allRowsWithColorsWCModels; this.allColors = allColors; this.rightPanel = rightPanel; }