mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:17:35 +00:00
WebDriver: Fix typo in browser capabilities key parsing
This commit is contained in:
parent
6d19a9f9da
commit
fc15968418
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ static ErrorOr<JsonObject, Error> validate_capabilities(JsonValue const& capabil
|
||||||
// -> name equals "browserName"
|
// -> name equals "browserName"
|
||||||
// -> name equals "browserVersion"
|
// -> name equals "browserVersion"
|
||||||
// -> name equals "platformName"
|
// -> name equals "platformName"
|
||||||
else if (name.is_one_of("browserName"sv, "browser_version"sv, "platformName"sv)) {
|
else if (name.is_one_of("browserName"sv, "browserVersion"sv, "platformName"sv)) {
|
||||||
// If value is not a string return an error with error code invalid argument. Otherwise, let deserialized be set to value.
|
// If value is not a string return an error with error code invalid argument. Otherwise, let deserialized be set to value.
|
||||||
if (!value.is_string())
|
if (!value.is_string())
|
||||||
return Error::from_code(ErrorCode::InvalidArgument, DeprecatedString::formatted("Capability {} must be a string", name));
|
return Error::from_code(ErrorCode::InvalidArgument, DeprecatedString::formatted("Capability {} must be a string", name));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue