When I use below code, everything works fine.
Public driver As IWebDriver
driver = New ChromeDriver("C:\")
And when I tried chromeoptions object, it’s not working
Dim service As ChromeDriverService = ChromeDriverService.CreateDefaultService()
service.HideCommandPromptWindow = True
Dim chromeOptions As New ChromeOptions()
chromeOptions.BinaryLocation = "C:\"
chromeOptions.AddArgument("start-minimized")
driver = New ChromeDriver(service, chromeOptions)
Below is the error:
OpenQA.Selenium.DriverServiceNotFoundException' occurred in WebDriver.dll
Please help in this matter.Thanks