From 92fd97ed6332a528b2d0c3db2635f121e27608ea Mon Sep 17 00:00:00 2001 From: Tobias Christiansen Date: Wed, 19 Oct 2022 22:31:48 +0200 Subject: [PATCH] WebDriver: Fix old current_window style --- Userland/Services/WebDriver/Session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" };