• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • Programming Languages
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials
  • Automation Tools and Different Tools
    • Web Automation
      • Selenium with Java
        • Selenium Basic
        • Selenium Advance
        • Selenium Realtime
        • Framework
        • Selenium Interview
        • Selenium Videos
        • Selenium with Docker
      • Selenium with Python
      • WebdriverIO
        • Selenium Webdriver C# Tutorial
      • Cypress
      • Playwright
    • TestNG
    • Cucumber
    • Mobile Automation
      • Appium
    • API Testing
      • Postman
      • Rest Assured
      • SOAPUI
    • testRigor
    • Katalon
    • TestProject
    • Serenity BDD
    • Gradle- Build Tool
    • RPA-UiPath
    • Protractor
    • Windows Automation
  • Automation For Manual Testers
  • Services
  • Online Training
  • Contact us
  • About me
  • Follow us
    • Linkedin
    • Facebook Group
    • Facebook Page
    • Instagram

Automation

Selenium WebDriver tutorial Step by Step

You are here: Home / Playwright / How To Fix Error: No tests found In Playwright

How To Fix Error: No tests found In Playwright

August 18, 2023 by Mukesh Otwani 2 Comments

No Test Found

Recently I started working with a playwright for one of the projects and started playing with a playwright but very impressed with the feature they provide.

You can execute playwright tests in various ways like CLI mode or directly from VSCode if you are using the Playwright extension.

While running the test from cli you might come across the below error No tests found In Playwright.

Error: No tests found

When you install playwright it comes with sample test and sample command to execute the test but when you can run the same command, you might get the same error.

How To Fix Error: No tests found

There is a quick fix just replace \ with / and we are good to go. 

Earlier – npx playwright test .\tests\handleAlert.spec.js

Now –  npx playwright test ./tests/handleAlert.spec.js

I have executed only one test but you can use different test using different playwright CLI command with options.

 

Fix Provided

You might also come across the same issue if you trigger this from jenkins or any other CLI tool so make sure you make the changes accordingly.

 

Filed Under: Playwright Tagged With: Playwright No Test Found

Reader Interactions

Comments

  1. Siddharth Barthwal says

    October 29, 2023 at 11:31 AM

    it did not work

    Reply
    • Mukesh Otwani says

      October 31, 2023 at 12:27 PM

      Please check the path of the test that you have specified and let me know what exception you are getting.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Free Selenium Videos

https://www.youtube.com/watch?v=w_iPCT1ETO4

Search topic

Top Posts & Pages

  • Selenium Webdriver tutorial for beginners
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Selenium Webdriver C# Tutorial
  • WHAT ARE YOUR EXPECTATIONS FROM US?

Stay connected via Facebook

Stay connected via Facebook

Archives

Footer

Categories

Recent Post

  • API Testing Using Postman And RestAssured
  • Disable Personalise Your Web Experience Microsoft Edge Prompt In Selenium
  • How To Fix Error: No tests found In Playwright
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Best and easy way to Group test cases in selenium

Top Posts & Pages

  • Selenium Webdriver tutorial for beginners
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Selenium Webdriver C# Tutorial
  • WHAT ARE YOUR EXPECTATIONS FROM US?