mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 04:57:45 +00:00
WebDriver: Implement Close Window closer to the spec
We are expected to return the list of open handles after closing the current handle. Also just return a WebDriver::Response instead of a wrapped Error variant.
This commit is contained in:
parent
9dc622475e
commit
47493b5734
4 changed files with 12 additions and 36 deletions
|
@ -48,7 +48,7 @@ public:
|
|||
ErrorOr<void> start();
|
||||
Web::WebDriver::Response stop();
|
||||
Web::WebDriver::Response get_window_handle();
|
||||
ErrorOr<void, Variant<Web::WebDriver::Error, Error>> close_window();
|
||||
Web::WebDriver::Response close_window();
|
||||
Web::WebDriver::Response get_window_handles() const;
|
||||
Web::WebDriver::Response take_element_screenshot(StringView element_id);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue