mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
WebDriver: Specify callbacks for clients to launch browser windows
This moves the actual launching of browser windows to the WebDriver main file. This will allow Ladybird to specify its own callback and re-use Serenity's Session class.
This commit is contained in:
parent
366f24a73b
commit
956fa84f12
5 changed files with 52 additions and 29 deletions
|
@ -19,6 +19,8 @@
|
|||
|
||||
namespace WebDriver {
|
||||
|
||||
struct LaunchBrowserCallbacks;
|
||||
|
||||
class Session {
|
||||
public:
|
||||
Session(unsigned session_id, NonnullRefPtr<Client> client, Web::WebDriver::LadybirdOptions options);
|
||||
|
@ -32,7 +34,7 @@ public:
|
|||
return *m_web_content_connection;
|
||||
}
|
||||
|
||||
ErrorOr<void> start();
|
||||
ErrorOr<void> start(LaunchBrowserCallbacks const&);
|
||||
Web::WebDriver::Response stop();
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue