问题
I am using Selenium WebDriver to make some automations, using chrome I can use the headless
argument to hide it, but I don't know the argument to hide the Internet Explorer.
Dim driver As New ChromeDriver
driver.AddArgument ("headless")
Dim driver As New IEDriver
driver.AddArgument ("?????????????????????")
Library used - A Selenium based browser automation framework for VB.Net, VBA and VBScript
回答1:
Based on my searching results, it looks like Internet Explorer does not support Headless mode.
As a work around, you can use trifleJS.
It can emulate some IE versions in a headless mode.
References:
(1) How to Set capability for IE browser to run in Headless mode
(2) TrifleJS
来源:https://stackoverflow.com/questions/55774761/how-do-i-make-internet-explorer-driver-invisible-using-selenium-and-vb