mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 15:41:48 +00:00
Working navigation events (clicks, form submission)
This commit is contained in:
@@ -123,11 +123,9 @@ pub fn CDPT(comptime TypeProvider: type) type {
|
||||
// This is hopefully temporary.
|
||||
pub fn pageWait(self: *Self) void {
|
||||
const session = &(self.browser.session orelse return);
|
||||
var page = session.currentPage() orelse return;
|
||||
|
||||
// exits early if there's nothing to do, so a large value like
|
||||
// 5 seconds should be ok
|
||||
page.wait(5);
|
||||
session.wait(5);
|
||||
}
|
||||
|
||||
// Called from above, in processMessage which handles client messages
|
||||
|
||||
Reference in New Issue
Block a user