Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 2.72 KB

File metadata and controls

49 lines (35 loc) · 2.72 KB

GenXdev.Webbrowser.Playwright

Overview

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.

What It Offers

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

How It All Comes Together

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.

See Also