GenXdev.Webbrowser.Playwright manages persistent Playwright browser sessions. It launches browsers with reusable user profiles (preserving logins, cookies, and extensions), for automated scripting and testing.
| Command | Aliases | What it does |
|---|---|---|
| Open-PlayWrightBrowser | spb |
Start a Playwright-managed browser with a persistent profile |
| Select-WebbrowserTab | st |
Select a tab from running Playwright-managed browsers |
| Set-WebbrowserTabLocation | lt, Nav |
Navigate the current tab to a new URL |
| Close-WebbrowserTab | ct, CloseTab |
Close the currently selected browser tab |
| Get-WebbrowserTabDomNodes | wl |
Query DOM nodes via CSS selectors |
| Invoke-WebbrowserEvaluation | Eval, et |
Execute arbitrary JavaScript in a browser tab |
| Get-PlaywrightSessionReference | — | Get a reference to the current Playwright session |
| Get-PlaywrightProfileDirectory | — | Get the Playwright profile directory path |
Open-PlayWrightBrowser (spb) starts a Playwright-managed browser with a
persistent user profile.
Select-WebbrowserTab (st) selects a tab from running Playwright-managed
browsers.
Set-WebbrowserTabLocation (lt, Nav) navigates the current
tab to a new URL.
Get-WebbrowserTabDomNodes (wl) queries
DOM nodes via CSS selectors.
Invoke-WebbrowserEvaluation (Eval, et)
executes JavaScript in a browser tab.
Get-PlaywrightSessionReference returns a reference to the current
Playwright session.
Close-WebbrowserTab (ct, CloseTab) closes the
currently selected browser tab.
- GenXdev.Webbrowser — Browser automation
- GenXdev.Queries.Webbrowser — Search queries in browser tabs
- Full Cmdlet Reference