diff --git a/Userland/Libraries/LibWeb/WebDriver/ExecuteScript.cpp b/Userland/Libraries/LibWeb/WebDriver/ExecuteScript.cpp index 5dcdf6e0d78..62bd4cbdde2 100644 --- a/Userland/Libraries/LibWeb/WebDriver/ExecuteScript.cpp +++ b/Userland/Libraries/LibWeb/WebDriver/ExecuteScript.cpp @@ -332,7 +332,7 @@ ExecuteScriptResultSerialized execute_async_script(Web::Page& page, ByteString c auto start = MonotonicTime::now(); auto has_timed_out = [&] { - return timeout.has_value() && (MonotonicTime::now() - start) > AK::Duration::from_seconds(static_cast(*timeout)); + return timeout.has_value() && (MonotonicTime::now() - start) > AK::Duration::from_milliseconds(static_cast(*timeout)); }; // AD-HOC: An execution context is required for Promise creation hooks.