@@ -131,7 +131,7 @@ public String getText() {
131
131
@ Override
132
132
public String getText (HighlightState highlightState ) {
133
133
logElementAction ("loc.get.text" );
134
- getJsActions ().highlightElement ();
134
+ getJsActions ().highlightElement (highlightState );
135
135
String value = doWithRetry (() -> getElement ().getText ());
136
136
logElementAction ("loc.text.value" , value );
137
137
return value ;
@@ -147,7 +147,7 @@ public IElementStateProvider state() {
147
147
@ Override
148
148
public String getAttribute (final String attr , HighlightState highlightState ) {
149
149
logElementAction ("loc.el.getattr" , attr );
150
- getJsActions ().highlightElement ();
150
+ getJsActions ().highlightElement (highlightState );
151
151
String value = doWithRetry (() -> getElement ().getAttribute (attr ));
152
152
logElementAction ("loc.el.attr.value" , attr , value );
153
153
return value ;
@@ -156,7 +156,7 @@ public String getAttribute(final String attr, HighlightState highlightState) {
156
156
@ Override
157
157
public String getCssValue (final String propertyName , HighlightState highlightState ) {
158
158
logElementAction ("loc.el.cssvalue" , propertyName );
159
- getJsActions ().highlightElement ();
159
+ getJsActions ().highlightElement (highlightState );
160
160
String value = doWithRetry (() -> getElement ().getCssValue (propertyName ));
161
161
logElementAction ("loc.el.attr.value" , propertyName , value );
162
162
return value ;
0 commit comments