mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
WebContent+WebDriver: Move the Get Current URL command to WebContent
This commit is contained in:
parent
31bb79295d
commit
3ba6b5a7cb
6 changed files with 21 additions and 18 deletions
|
@ -491,8 +491,7 @@ Web::WebDriver::Response Client::handle_get_current_url(Vector<StringView> const
|
|||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "Handling GET /session/<session_id>/url");
|
||||
auto* session = TRY(find_session_with_id(parameters[0]));
|
||||
auto result = TRY(session->get_current_url());
|
||||
return make_json_value(result);
|
||||
return session->web_content_connection().get_current_url();
|
||||
}
|
||||
|
||||
// 10.3 Back, https://w3c.github.io/webdriver/#dfn-back
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue