SeleniumBasic
SeleniumBasic copied to clipboard
Chrome Not Launching Sometimes
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
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
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.