playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Feature] `MUCH BETTER` Record at Cursor

Open daenamkim opened this issue 1 year ago • 3 comments

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.

Screenshot 2023-12-11 at 12 36 46

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!

daenamkim avatar Dec 11 '23 03:12 daenamkim

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!

daenamkim avatar Dec 11 '23 04:12 daenamkim

Thanks for posting the alternative @daenamkim. I've opened https://github.com/microsoft/playwright/pull/28970 to improve documentation.

tomaskikutis avatar Jan 12 '24 17:01 tomaskikutis

+1 for this.

vkWeb avatar May 05 '24 11:05 vkWeb

  • 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.

trigunam avatar Jul 16 '24 11:07 trigunam