1

I have been using the selenium to find text from web page.In that function when i run it it opens firefox in foreground.I don't want it to be in foreground.Is there any way to hide that browser.

I have developed in classlibrary function using xUnit.

Thanks.

0___________
  • 47,100
  • 4
  • 27
  • 62

1 Answers1

1

It can be done easily by using this,

options.AddArgument("headless");

and then,

ChromeDriverService service = ChromeDriverService.CreateDefaultService();
service.HideCommandPromptWindow = true;