diff --git a/Userland/Services/WebDriver/Session.cpp b/Userland/Services/WebDriver/Session.cpp index e61f79d86c..b854b5bc12 100644 --- a/Userland/Services/WebDriver/Session.cpp +++ b/Userland/Services/WebDriver/Session.cpp @@ -667,7 +667,7 @@ ErrorOr Session::get_element_attribute(JsonValue const&, S ErrorOr Session::get_element_property(JsonValue const&, StringView parameter_element_id, StringView name) { // 1. If the current browsing context is no longer open, return error with error code no such window. - auto current_window = get_window_object(); + auto current_window = this->current_window(); if (!current_window.has_value()) return HttpError { 404, "no such window", "Window not found" };