I could not find documentation for SeleniumWrapper. So, I assumed that SeleniumWrapper.WebDriver.Start doesn't handle any `ChromeOptions' related arguments.
If the above assumption is true, one cannot apply the given solution in C#.
Instead, you may try the following: (I referenced this)
Imports OpenQA.Selenium
Imports OpenQA.Selenium.Chrome
...
...
Public Sub key()
Dim service As OpenQA.Selenium.Chrome.ChromeDriverService = OpenQA.Selenium.Chrome.ChromeDriverService.CreateDefaultService()
Dim chromeOptions As New OpenQA.Selenium.Chrome.ChromeOptions()
chromeOptions.AddExcludedArgument("ignore-certifcate-errors")
chromeOptions.AddArgument("test-type")
Dim driver As IWebDriver = New ChromeDriver(service, chromeOptions)
driver.Navigate().GoToUrl("https://google.com/")
driver.Quit()
End Sub
I added couple lines from my experience running Selenium in C#.
Please provide where SeleniumWrapper with its documentation to determine if one can/cannot set ChromeOptions for SeleniumWrapper.
Please explain how can i apply the answer mention in above link into my VBA code.If you want a VBA answer, why the VB.NET tag? - Ňɏssa Pøngjǣrdenlarp