Skip to content

Commit

Permalink
WebDriver: Partial Implementation of Element Clear Endpoint
Browse files Browse the repository at this point in the history
- Implemented sections 1, 2, and 3 of the Element Clear endpoint.
- Reordered Web::WebDriver::Error entries alphabetically.
  • Loading branch information
hanpham32 committed Sep 10, 2024
1 parent d5d139e commit eec3817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Services/WebContent/WebDriverConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,7 @@ Messages::WebDriverClient::ElementClearResponse WebDriverConnection::element_cle
dbgln("FIXME: WebDriverConnection::element_clear()");

// 1. If element's innerHTML IDL attribute is an empty string do nothing and return.
auto* element = TRY(get_known_connected_element(element_id));
Web::DOM::Element* element = TRY(get_known_connected_element(element_id));
if (!element) {
return Web::WebDriver::Error::from_code(Web::WebDriver::ErrorCode::NoSuchElement, "Element not found");
}
Expand Down

0 comments on commit eec3817

Please sign in to comment.