Selenium .net Binary location failed VB.NET

0 votes

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

May 15, 2018 in Selenium by Martin
• 4,220 points
236 views

1 answer to this question.

0 votes
ChromeOptions.BinaryLocation is for specifying the location of Chrome.exe, not for specifying ChromeDriver.exe
answered May 15, 2018 by Samarpit
• 5,130 points

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer

Headless ChromeDriver using Python Selenium error: Fails To Start— “DevTools request failed”

This should be because your ChromeDriver is ...READ MORE

answered Mar 29, 2018 in Selenium by nsv999
• 5,050 points
294 views
0 votes
1 answer

Selenium Type method test method failed

In this matter ur 1st paramter should ...READ MORE

answered Apr 3, 2018 in Selenium by Shubham
• 13,250 points
52 views
0 votes
1 answer

How do i change the location where my file gets downloaded in Selenium Webdriver and firefox driver?

There are a couple of errors there. ...READ MORE

answered Apr 12, 2018 in Selenium by nsv999
• 5,050 points
1,243 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,050 points
280 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
641 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
269 views
0 votes
2 answers
0 votes
1 answer

Unable to Start tor using Python Selenium Error: failed to start

I tried to solve same problem on ...READ MORE

answered Jun 29, 2018 in Selenium by Samarpit
• 5,130 points
558 views