How do I make Internet Explorer driver invisible using Selenium and VB?

末鹿安然 提交于 2021-02-11 12:20:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!