DEV Community

Sampad Sarker
Sampad Sarker

Posted on

How to Debug βš™πŸ› 

Follow the simple three steps

step 1: Understand the problem statement very clearly.
step 2: Develop an algorithm on the problem(step by step solution).
step 3: Logic building.
step 4: Code on pen & paper.
step 5: Dry run the code.( if you want to read more about dry run)

If don't get proper result at step 5 go to step 1 again.

Top comments (0)

Image of Checkly

4 Playwright Locators Explained: Which One Should You Use?

- locator('.cta'): Fast but brittle
- getByText('Click me'): User-facing, but can miss broken accessibility
- getByRole('button', { name: 'Click me' }): Most robust, best for a11y
- getByTestId('cta-button'): Stable, but ignores UX

Watch video