DEV Community

AfzalYusuf413
AfzalYusuf413

Posted on

Help Needed with Playwright Locators

Playwright Version: Version 1.28.1
Web Browser: Chromium

I'm new to playwright. When I use the GetByRole locator method, I get the following error " 'IPage' does not contain a definition for 'GetByRole' and no accessible extension method 'GetByRole' accepting a first argument of type 'IPage' could be found (are you missing a using directive or an assembly reference?)CS1061"

Please help me solve this as I really want to use the GetBy methods to identify locators

Thanks!!

Top comments (0)