playwright
playwright copied to clipboard
[Feature] `MUCH BETTER` Record at Cursor
Let us know what functionality you'd like to see in Playwright and what your use case is
Record at Cursor
is amazing feature but I think it can be better. What I think is running all tests codes including fixtures just before the cursor then users will not need to run themselves to add more test in the middle of tests. I am sure that it will be more efficient and new experience for writing tests since if there are so many tests just before the cursor, users will not use that feature but just run the test repeatedly.
Do you think others might benefit from this as well? Of course I do 😄
Please correct me if I misunderstood or have more better idea!
I have found an alternative way to do that:
- put break point and run a test in debugging mode after
Show browser
is checked - terminate debugging
- start record at cursor from the opening browser
but it needs switching windows and menus many times so single click would be great!
Thanks for posting the alternative @daenamkim. I've opened https://github.com/microsoft/playwright/pull/28970 to improve documentation.
+1 for this.
- start record at cursor from the opening browser
This works like a charm! Thanks for the suggestion @daenamkim. Just the thing I needed right now.