Skip to content

Commit 7ac4131

Browse files
committed
Swap check for Widget and WebElement - Allows Widget extensions to implement WebElement interface
1 parent f2b824e commit 7ac4131

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/io/appium/java_client/pagefactory/AppiumFieldDecorator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ protected boolean isDecoratableList(Field field) {
193193
* @return a field value or null.
194194
*/
195195
public Object decorate(ClassLoader ignored, Field field) {
196-
Object result = defaultElementFieldDecorator.decorate(ignored, field);
197-
return result == null ? decorateWidget(field) : result;
196+
Object result = decorateWidget(field);
197+
return result == null ? defaultElementFieldDecorator.decorate(ignored, field) : result;
198198
}
199199

200200
@Nullable

0 commit comments

Comments
 (0)