You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure you have the playwright vscode extension installed.
Run the test using the vscode playwright extension while enabling "Show Browser"
Follow what I did in the video shown below. The issue is that if the getByRole selector spans multiple lines, the highlight on browser feature doesn't work anymore.
Note: This is likely the issue [Question] Does getByRole work like locator in vscode? #18246 that this person ran into.
playwright-vscoide-extension-getbyrole-bug.mov
Expected behavior
Clicking on getByRole causes the corresponding element to be highlighted in the browser
Actual behavior
The corresponding element is only highlighted if the getByRole does not span multiple lines