@@ -131,7 +131,7 @@ public String getText() {
131131 @ Override
132132 public String getText (HighlightState highlightState ) {
133133 logElementAction ("loc.get.text" );
134- getJsActions ().highlightElement ();
134+ getJsActions ().highlightElement (highlightState );
135135 String value = doWithRetry (() -> getElement ().getText ());
136136 logElementAction ("loc.text.value" , value );
137137 return value ;
@@ -147,7 +147,7 @@ public IElementStateProvider state() {
147147 @ Override
148148 public String getAttribute (final String attr , HighlightState highlightState ) {
149149 logElementAction ("loc.el.getattr" , attr );
150- getJsActions ().highlightElement ();
150+ getJsActions ().highlightElement (highlightState );
151151 String value = doWithRetry (() -> getElement ().getAttribute (attr ));
152152 logElementAction ("loc.el.attr.value" , attr , value );
153153 return value ;
@@ -156,7 +156,7 @@ public String getAttribute(final String attr, HighlightState highlightState) {
156156 @ Override
157157 public String getCssValue (final String propertyName , HighlightState highlightState ) {
158158 logElementAction ("loc.el.cssvalue" , propertyName );
159- getJsActions ().highlightElement ();
159+ getJsActions ().highlightElement (highlightState );
160160 String value = doWithRetry (() -> getElement ().getCssValue (propertyName ));
161161 logElementAction ("loc.el.attr.value" , propertyName , value );
162162 return value ;
0 commit comments