browser: split page start from page navigate

This commit is contained in:
Pierre Tachoire
2024-12-19 10:00:49 +01:00
parent 8e2cb36597
commit 2fed239ece
4 changed files with 29 additions and 14 deletions

View File

@@ -326,6 +326,8 @@ pub fn main() !void {
// page
const page = try browser.session.createPage();
try page.start();
defer page.end();
_ = page.navigate(opts.url, null) catch |err| switch (err) {
error.UnsupportedUriScheme, error.UriMissingHost => {