diff --git a/Userland/Services/WebDriver/Session.cpp b/Userland/Services/WebDriver/Session.cpp index b68cb250f3..d7a6e31174 100644 --- a/Userland/Services/WebDriver/Session.cpp +++ b/Userland/Services/WebDriver/Session.cpp @@ -10,7 +10,7 @@ #include "Session.h" #include "BrowserConnection.h" #include "Client.h" -#include +#include #include #include #include @@ -266,7 +266,7 @@ static JsonObject web_element_reference_object(Session::LocalElement const& elem ErrorOr Session::find(Session::LocalElement const& start_node, StringView const& using_, StringView const& value) { // 1. Let end time be the current time plus the session implicit wait timeout. - auto end_time = Core::DateTime::from_timestamp(Core::DateTime::now().timestamp() + m_timeouts_configuration.implicit_wait_timeout / 1000); + auto end_time = Time::now_monotonic() + Time::from_milliseconds(static_cast(m_timeouts_configuration.implicit_wait_timeout)); // 2. Let location strategy be equal to using. auto location_strategy = using_;