mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:37:45 +00:00
WebContent+WebDriver: Move the Navigate To command to WebContent
This commit is contained in:
parent
2d5381fd91
commit
31bb79295d
8 changed files with 69 additions and 37 deletions
|
@ -482,8 +482,7 @@ Web::WebDriver::Response Client::handle_navigate_to(Vector<StringView> const& pa
|
|||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "Handling POST /session/<session_id>/url");
|
||||
auto* session = TRY(find_session_with_id(parameters[0]));
|
||||
auto result = TRY(session->navigate_to(payload));
|
||||
return make_json_value(result);
|
||||
return session->web_content_connection().navigate_to(payload);
|
||||
}
|
||||
|
||||
// 10.2 Get Current URL, https://w3c.github.io/webdriver/#dfn-get-current-url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue