Skip to content

Commit

Permalink
#5311 add background method
Browse files Browse the repository at this point in the history
  • Loading branch information
pnatashap committed Apr 10, 2024
1 parent b26897e commit 365f72b
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public class DatePicker extends UIBaseElement<DatePickerAssert> implements
private static final String ICON_NEAR_DATE = "//div[@class='v-input__prepend-outer']/div";
private static final String FORMATTED_DATE = "//p/strong";
private static final String TITLE_FIELD = ".v-picker__title";
private static final String BODY_FIELD = ".v-picker__body";
private static final String DISABLED_DATES = "table > tbody button:disabled";
private static final String ENABLED_DATES = "table > tbody button:enabled";
private static final String NEXT_MONTH_ICON =
Expand Down Expand Up @@ -449,11 +450,17 @@ public void changeYearCornerButton() {
}

@Override
@JDIAction("Get '{name}' color from color field")
@JDIAction("Get '{name}' color from title")
public String color() {
return titleField().css("background-color");
}

@Override
@JDIAction("Get '{name}' color from body")
public String backgroundColor() {
return core().find(BODY_FIELD).css("background-color");
}

@JDIAction("Get '{name}' list of disabled dates")
public List<String> getDisabledDates() {
return disabledDates().stream().map(elem
Expand Down

0 comments on commit 365f72b

Please sign in to comment.