SeleniumBasic icon indicating copy to clipboard operation
SeleniumBasic copied to clipboard

Chrome Not Launching Sometimes

Open fjocosta opened this issue 7 years ago • 2 comments

Hello there,

I'm having some issues working with Selenium in VBA. It's an error that i'm not able to specify, because i couldn't reproduce it myself.

Option Explicit

Private Bot As New WebDriver

Private Function RunQuery(MyParameters) as boolean

Dim Atv as New ClsAtv

Bot.start Atv.Browser, Atv.URL
(...)

And that's it! Sometimes it works, others doesn't. I have the latest ChromeDriver and the Selenium Basic 2.09, running windows 7 with Excel 2010. Most of the times, this error happens while debugging (F8). I cannot specify it much more, because it is completly random.

Best Regards

FC

fjocosta avatar Nov 09 '17 15:11 fjocosta

Forgot to say, when this happens, i can see chromedriver starting in taskmanager, but not chrome.exe.

I've also tested the following:

Bot.start Atv.Browser ' this case chrome

Bot.Get Atv.URL

fjocosta avatar Nov 09 '17 15:11 fjocosta

Download the latest chromedrive and replace the one at "C:\Users--user--\AppData\Local\SeleniumBasic\chromedriver.exe". This should fix it. SeleniumBasic hasn't been updated in a while and the drivers get updated often.

mogulman52 avatar Nov 25 '17 17:11 mogulman52