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,320 points
2,340 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,910 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
1,806 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, 2020 in Selenium by Rock
• 120 points
1,220 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 30, 2018 in Selenium by nsv999
• 5,500 points
2,034 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,500 points
13,649 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

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

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,131 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,910 points
7,209 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 3, 2020 in Selenium by Sri
• 3,190 points
7,865 views
0 votes
5 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,910 points
3,773 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP