'Having issue launching Firefox using Playwright for .Net

I have built a framework that utilizes Playwright for .Net. I have some enum values I have declared for all my browsers. I have created a Driver.cs class to handle the launching of the different browsers I pass as enum values. When I run the test, I am able to run against Chrome but not firefox. Here is my nuget packages

enter image description here

I get the following error:

Error

Here is my driver class Driver class

Here is the first portion of my Test class which will take parameterized browser enums to be used across test methods. It also calls instantiates the driver class and sets the launch options Test setup

Lastly, this is how the tests is using the logic [Sample test method4

The error I get is again:

Looks like Playwright Test or Playwright was just installed or updated. ║
║ Please run the following command to download new browsers:              ║
║                                                                         ║
║     pwsh bin\Debug\netX\playwright.ps1 install                          ║
║                                                                         ║
║ <3 Playwright Team  

I have ran the following command at the directory level of the test on my windows machine

pwsh bin\Stage\netcoreapp3.1\playwright.ps1 install

Yet, I still cannot get firefox to launch. What should I do?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source