diff --git a/serenity-core/src/main/java/net/serenitybdd/core/webdriver/driverproviders/CapabilityValue.java b/serenity-core/src/main/java/net/serenitybdd/core/webdriver/driverproviders/CapabilityValue.java index 669996de2..daf13439a 100644 --- a/serenity-core/src/main/java/net/serenitybdd/core/webdriver/driverproviders/CapabilityValue.java +++ b/serenity-core/src/main/java/net/serenitybdd/core/webdriver/driverproviders/CapabilityValue.java @@ -3,7 +3,7 @@ public class CapabilityValue { public static Object fromString(Object value) { if (isaBoolean(value)) { - return Boolean.getBoolean(value.toString()); + return Boolean.parseBoolean(value.toString()); } if (isAnInteger(value)) { return Integer.parseInt(value.toString());