Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update readme with new video #15

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### v2.0.57
* updated readme, recorded demo video

### v2.0.56
* cli command fix

Expand All @@ -14,12 +17,6 @@
* Live code execution method much simplified and much more robust (todo: write tech doc about this)
* bugfix: Make page object model tools build correct paths on non-windows filesystems

### Next

* enhancement: Figure out how to make extensible selector code more user-friendly to edit and modify
* feature: support nested page object model components
* feature: Add secondary commands via right-click to recorder

----


Expand All @@ -28,16 +25,12 @@

# Getting Started

## Watch the video
## Watch the video demonstration

[![Getting Started](https://i.ytimg.com/vi/ys5vczHm9sw/maxresdefault.jpg)](https://youtu.be/ys5vczHm9sw)

[![Getting Started](https://i.ytimg.com/vi/73SnYrsrrTo/maxresdefault.jpg)](https://youtu.be/73SnYrsrrTo)


-----
## Details
-----

## Prerequisites

`@playwright/test` (typescript)
Expand Down Expand Up @@ -85,7 +78,7 @@ await PlaywrightLiveRecorder.start(page, s => <undefined>eval(s));

Run the test in headed mode

> 💡 if you're using the vscode plugin `ms-playwright.playwright` it will automatically run in headed mode with PWDEBUG set to console (see modifications to `.vscode/settings.json`)
> 💡 if you're using the vscode plugin `ms-playwright.playwright` it will automatically run in headed mode with PWDEBUG set to console (see modifications to `.vscode/settings.json`)
> 💡 if you're running from the command line, set the environment variable `PWDEBUG=console` before running the playwright command, e.g. `playwright test --ui`

Test will run, when `PlaywrightLiveRecorder.start` line is executed lib functionality will be exposed to the browser and all scripts will be loaded in the browser. Test execution waits until browser is closed.
Expand All @@ -101,7 +94,7 @@ Newly added or modified test lines above `PlaywrightLiveRecorder.start` are exec
> * The label is the page object model path+filename
> * the f(x) button displays public helper functions available from your page object model file, click the green ➕ to add an example to the file
>
> When record is toggled on a hover tooltip is positioned next to the cursor showing the code that will be generated
> When record is toggled on a hover tooltip is positioned next to the cursor showing the code that will be generated
>> 💡 if the recorder blocks your testing session, work past it by toggling record off, clicking, then toggling it back on

## **Recording**
Expand Down