Playwriter.WindowsBrowserDirect (Playwriter v0.0.2)

View Source

Direct Windows browser control using PowerShell automation. This bypasses the WebSocket server approach and directly controls Windows browsers.

Summary

Functions

Uses Windows' built-in Invoke-WebRequest for simple HTML fetching. This doesn't use a real browser but can work for simple pages.

Alternative approach using Edge WebView2 which is built into Windows.

Opens a URL in Windows browser and captures the HTML. This approach uses PowerShell to directly control Windows browsers.

Functions

fetch_simple(url, opts \\ %{})

Uses Windows' built-in Invoke-WebRequest for simple HTML fetching. This doesn't use a real browser but can work for simple pages.

fetch_with_edge_webview(url, opts \\ %{})

Alternative approach using Edge WebView2 which is built into Windows.

fetch_with_powershell(url, opts \\ %{})

Opens a URL in Windows browser and captures the HTML. This approach uses PowerShell to directly control Windows browsers.