add LP.getInteractiveElements CDP command

Returns a structured list of all interactive elements on a page:
buttons, links, inputs, ARIA widgets, contenteditable regions, and
elements with event listeners. Includes accessible names, roles,
listener types, and key attributes.

Event listener introspection (both addEventListener and inline
handlers) is unique to LP — no other browser exposes this to
automation code.
This commit is contained in:
egrs
2026-03-09 19:11:09 +01:00
parent 9172e16e80
commit a417c73bf7
3 changed files with 531 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ pub const log = @import("log.zig");
pub const js = @import("browser/js/js.zig");
pub const dump = @import("browser/dump.zig");
pub const markdown = @import("browser/markdown.zig");
pub const interactive = @import("browser/interactive.zig");
pub const mcp = @import("mcp.zig");
pub const build_config = @import("build_config");
pub const crash_handler = @import("crash_handler.zig");