102425074
102425074

Reputation: 811

How can I hide browser of Selenium IEDriver?

enter image description here

I used Selenium IEDriver as the picture showed above on nuget.

I know someone will ask me why use Selenium IEDriver.I have no choice that the website can only runs correctly in Internet Explorer for it is an old website.

When the Selenium IEDriver runs,it will open a new Internet Explorer and runs on it.I just want it runs in background but not show a window.

How can I do it?Thank you.

PS:Someone said my question is duplicate and let me use trifle.js .I searched and found that Selenium WebDriver can hide browser but I just don't know how IEDriver hide browser.I want to use Selenium but not trifle.js at all.

Upvotes: 1

Views: 1017

Answers (1)

MasterBlasterCoder
MasterBlasterCoder

Reputation: 52

Other browsers will have headless option, but IE doesn't have!The hiding of browser is called headless mode, you can't do that with IE!

Upvotes: 1

Related Questions