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,330 points
649 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,890 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

Dec 6, 2019 in Selenium by Matt
• 130 points
343 views
0 votes
0 answers

Getting different texts from the HTML DOM through Selenium and Python or vb.net

Apologies in advance had to hide info ...READ MORE

May 4 in Selenium by Rock
• 120 points
164 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,510 points
690 views
0 votes
2 answers

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,510 points
3,522 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31 in Selenium by Sri
• 2,970 points
4,525 views
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,890 points
2,591 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 2 in Selenium by Sri
• 2,970 points
2,849 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,890 points
1,909 views