@@ -452,11 +452,11 @@ public String getFormat()
452452 {
453453 expand ();
454454
455- if (elementCache ().formatInput .getComponentElement ().isDisplayed ())
455+ if (elementCache ().formatInput .getComponentElement ().isDisplayed ())
456456 {
457457 return elementCache ().formatInput .getValue ();
458458 }
459- else if (elementCache ().charScaleInput .getComponentElement ().isDisplayed ())
459+ else if (elementCache ().charScaleInput .getComponentElement ().isDisplayed ())
460460 {
461461 // Formatting of Boolean types use the scale input.
462462 return elementCache ().charScaleInput .getValue ();
@@ -469,11 +469,11 @@ else if(elementCache().charScaleInput.getComponentElement().isDisplayed())
469469
470470 public WebElement getFormatControl ()
471471 {
472- if (elementCache ().formatInput .getComponentElement ().isDisplayed ())
472+ if (elementCache ().formatInput .getComponentElement ().isDisplayed ())
473473 {
474474 return elementCache ().formatInput .getComponentElement ();
475475 }
476- else if (elementCache ().charScaleInput .getComponentElement ().isDisplayed ())
476+ else if (elementCache ().charScaleInput .getComponentElement ().isDisplayed ())
477477 {
478478 // Formatting of Boolean types use the scale input.
479479 return elementCache ().charScaleInput .getComponentElement ();
@@ -923,7 +923,7 @@ private void updateValue(String originalValue, String newValue, boolean clickApp
923923 selectTextChoiceValue (originalValue );
924924 setUpdateTextChoiceValue (newValue );
925925
926- if (clickApply )
926+ if (clickApply )
927927 {
928928 WebDriverWrapper .waitFor (this ::isTextChoiceApplyButtonEnabled , "'Apply' button is not enabled." , 1_000 );
929929 Locator .button ("Apply" ).findElement (this ).click ();
@@ -1055,7 +1055,7 @@ private void clickValidateExpression()
10551055 public String getValueExpressionStatusMessage ()
10561056 {
10571057 String statusMsg = "" ;
1058- if (waitFor (elementCache ().expressionStatusMsg ::isDisplayed , 1_000 ))
1058+ if (waitFor (elementCache ().expressionStatusMsg ::isDisplayed , 1_000 ))
10591059 {
10601060 statusMsg = elementCache ().expressionStatusMsg .getText ();
10611061 }
@@ -1180,7 +1180,7 @@ public String getWarningMessage()
11801180 {
11811181 String warningMsg = "" ;
11821182 WebElement warningMsgElement = Locator .byClass ("domain-row-warning" ).findWhenNeeded (this );
1183- if (warningMsgElement .isDisplayed ())
1183+ if (warningMsgElement .isDisplayed ())
11841184 warningMsg = warningMsgElement .getText ();
11851185
11861186 return warningMsg ;
@@ -1411,7 +1411,7 @@ public String getDateTimeFormatDate()
14111411 {
14121412 String formatValue ;
14131413
1414- if (elementCache ().dateTimeFormatDateSelect .isInteractive ())
1414+ if (elementCache ().dateTimeFormatDateSelect .isInteractive ())
14151415 {
14161416 formatValue = getFormatWithoutExample (elementCache ().dateTimeFormatDateSelect .getValue ());
14171417 }
@@ -1442,7 +1442,7 @@ public String getDateTimeFormatTime()
14421442 {
14431443 String formatValue ;
14441444
1445- if (elementCache ().dateTimeFormatTimeSelect .isInteractive ())
1445+ if (elementCache ().dateTimeFormatTimeSelect .isInteractive ())
14461446 {
14471447 formatValue = getFormatWithoutExample (elementCache ().dateTimeFormatTimeSelect .getValue ());
14481448 }
@@ -1458,9 +1458,9 @@ public List<String> getDateTimeFormatTimeOptions()
14581458 {
14591459 ArrayList <String > formatValues = new ArrayList <>();
14601460 for (String formatOption : elementCache ().dateTimeFormatTimeSelect .getOptions ())
1461- {
1462- formatValues .add (getFormatWithoutExample (formatOption ));
1463- }
1461+ {
1462+ formatValues .add (getFormatWithoutExample (formatOption ));
1463+ }
14641464 return formatValues ;
14651465 }
14661466
@@ -1495,7 +1495,7 @@ public String getDateFormat()
14951495 {
14961496 String formatValue ;
14971497
1498- if (elementCache ().dateFormatSelect .isInteractive ())
1498+ if (elementCache ().dateFormatSelect .isInteractive ())
14991499 {
15001500 formatValue = getFormatWithoutExample (elementCache ().dateFormatSelect .getValue ());
15011501 }
@@ -1511,9 +1511,9 @@ public List<String> getDateFormatOptions()
15111511 {
15121512 List <String > options = new ArrayList <>();
15131513 for (String option : elementCache ().dateFormatSelect .getOptions ())
1514- {
1515- options .add (getFormatWithoutExample (option ));
1516- }
1514+ {
1515+ options .add (getFormatWithoutExample (option ));
1516+ }
15171517 return options ;
15181518 }
15191519
@@ -1558,7 +1558,7 @@ public String getTimeFormat()
15581558 {
15591559 String formatValue ;
15601560
1561- if (elementCache ().timeFormatSelect .isInteractive ())
1561+ if (elementCache ().timeFormatSelect .isInteractive ())
15621562 {
15631563 formatValue = getFormatWithoutExample (elementCache ().timeFormatSelect .getValue ());
15641564 }
@@ -1760,7 +1760,7 @@ protected class ElementCache extends WebDriverComponent.ElementCache
17601760 .findWhenNeeded (this );
17611761 private final Locator .XPathLocator expressionStatusMsgLoc = Locator .tagWithClass ("div" , "domain-field-calc-footer" );
17621762 public final WebElement expressionStatusValidated = expressionStatusMsgLoc .child (Locator .tagWithClass ("div" , "validated" )).refindWhenNeeded (this );
1763- public final WebElement expressionStatusError = expressionStatusMsgLoc .child (Locator .tagWithClass ("div " , "error" )).refindWhenNeeded (this );
1763+ public final WebElement expressionStatusError = expressionStatusMsgLoc .descendant (Locator .tagWithClass ("span " , "error" )).refindWhenNeeded (this );
17641764 public final WebElement expressionStatusMsg = expressionStatusMsgLoc .childTag ("div" ).refindWhenNeeded (this );
17651765 public final WebElement expressionValidateLink = expressionStatusMsgLoc .child (Locator .tagWithClass ("div" , "validate-link" )).refindWhenNeeded (this );
17661766
0 commit comments