Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium - How do I hide the browser

Tags:

c#

selenium

When I used WATIN I am able to hide the browser and my tests are a lot quicker. Now I am looking to do the same with selenium in c# if possible.

like image 976
user880954 Avatar asked Apr 01 '26 02:04

user880954


1 Answers

I don't know about C# unfortunately, but when using Selenium in Java for my web tests, I use it with HtmlUnit, which is a GUI-less browser made specially for that. They may have a version for C# or not, I'm not sure.

I've found similar questions on SO though. I haven't read the answers, but you can:

C# library similar to HtmlUnit

.net equivalent of htmlunit?

Html Parser & Object Model for .net/C#

like image 128
Guillaume Avatar answered Apr 02 '26 20:04

Guillaume