0

I am running selenium test written in DotNet from command line using the following command

dotnet test myprojectName.csproj

It works fine without any problem. How can I run the same tests in headless mode using command line?

Kahn
  • 429
  • 3
  • 6
  • 19
  • 1
    Modify your test to accept an additional argument as `headless` and add the headless property while initializing Chrome. Use the command `dotnet test myprojectName.csproj headless` – undetected Selenium Jan 16 '23 at 09:26
  • Already have headless property in chrome initializing. This dotnet test myprojectName.csproj headless is not working for me. – Kahn Jan 16 '23 at 09:38

0 Answers0