mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:27:34 +00:00
WebDriver: Fix old current_window style
This commit is contained in:
parent
e87456e38f
commit
92fd97ed63
1 changed files with 1 additions and 1 deletions
|
@ -667,7 +667,7 @@ ErrorOr<JsonValue, HttpError> Session::get_element_attribute(JsonValue const&, S
|
||||||
ErrorOr<JsonValue, HttpError> Session::get_element_property(JsonValue const&, StringView parameter_element_id, StringView name)
|
ErrorOr<JsonValue, HttpError> 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.
|
// 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())
|
if (!current_window.has_value())
|
||||||
return HttpError { 404, "no such window", "Window not found" };
|
return HttpError { 404, "no such window", "Window not found" };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue