LibWeb: Update WebDriver timeout parsing/serializing to the latest spec

Namely, all fields in the timeouts object may now be null. There are a
few calling AOs that we will want to bring up to date as well.
This commit is contained in:
Timothy Flynn 2024-10-11 14:52:44 -04:00 committed by Andreas Kling
commit 8396afeb76
Notes: github-actions[bot] 2024-10-12 13:03:37 +00:00
3 changed files with 62 additions and 82 deletions

View file

@ -15,8 +15,8 @@ namespace Web::WebDriver {
// https://w3c.github.io/webdriver/#dfn-timeouts-configuration
struct TimeoutsConfiguration {
Optional<u64> script_timeout { 30'000 };
u64 page_load_timeout { 300'000 };
u64 implicit_wait_timeout { 0 };
Optional<u64> page_load_timeout { 300'000 };
Optional<u64> implicit_wait_timeout { 0 };
};
JsonObject timeouts_object(TimeoutsConfiguration const&);