Back to Library
UI

Drag Drop Validation

Prompt

Generate Playwright script to drag and drop elements and validate final position.

Example Code

await page.locator('#a').dragTo(page.locator('#b'));

Quick Actions

PRO TIP

Paste this prompt as a comment in your .spec.ts file and let Copilot generate the test.

Next Steps
Browse Prompts