WebContent: Wait for navigation to complete in WebDriver

Implements https://w3c.github.io/webdriver/#dfn-waiting-for-the-navigation-to-complete.
This commit is contained in:
Aliaksandr Kalenik 2023-03-08 02:04:17 +03:00 committed by Tim Flynn
commit 63b8b37bd4
Notes: sideshowbarker 2024-07-17 04:57:23 +09:00
2 changed files with 50 additions and 4 deletions

View file

@ -101,6 +101,8 @@ private:
Gfx::IntRect maximize_the_window();
Gfx::IntRect iconify_the_window();
ErrorOr<void, Web::WebDriver::Error> wait_for_navigation_to_complete();
using StartNodeGetter = Function<ErrorOr<Web::DOM::ParentNode*, Web::WebDriver::Error>()>;
ErrorOr<JsonArray, Web::WebDriver::Error> find(StartNodeGetter&& start_node_getter, Web::WebDriver::LocationStrategy using_, StringView value);