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,230 points
367 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,150 points

Related Questions In Selenium

+1 vote
0 answers

How to read a table using VB.net and selenium

Hello, I can see the table yet ...READ MORE

5 days ago in Selenium by Matt
• 130 points
37 views
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,110 points
429 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,350 points
94 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,110 points
1,163 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,150 points
1,255 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,150 points
1,010 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,150 points
879 views