diff --git a/serenity-model/src/main/java/net/thucydides/model/steps/ReplaceField.java b/serenity-model/src/main/java/net/thucydides/model/steps/ReplaceField.java index 21ccfc0c3..bca2f00d4 100644 --- a/serenity-model/src/main/java/net/thucydides/model/steps/ReplaceField.java +++ b/serenity-model/src/main/java/net/thucydides/model/steps/ReplaceField.java @@ -58,7 +58,7 @@ private String stringValueFor(Object value) { } if (value.getClass().isArray()) { List elements = new ArrayList<>(); - Collections.singletonList(value).forEach( + Collections.singletonList(((Object[])value)[0]).forEach( part -> elements.add(part.toString()) );