SeleniumBasic icon indicating copy to clipboard operation
SeleniumBasic copied to clipboard

Not working :(

Open Glotchy opened this issue 7 years ago • 1 comments

Hi all after installing Selenium and enabling ref, I tried the basic routine

Public Sub seleniumtutorial()
Dim bot As New WebDriver
bot.Start "chrome", "https://www.google.com"
bot.Get "/"
bot.TakeScreenshot.SaveAs (ActiveWorkbook.Path + "/screenshot.jpg")
bot.Quit
'quit method for closing browser instance.
End Sub

I have several stuff happening

A VBA error image

Chrome opens in a strange way

image

and in perticular

image

I also sometimes get another type of error image

any help would be appreciated

Glotchy avatar Nov 20 '17 15:11 Glotchy

The latest driver is 2.33 and is for Chrome 60-62. Download the latest chromedrive and replace the one at "C:\Users--user--\AppData\Local\SeleniumBasic\chromedriver.exe". This should fix it.

`Private Sub Use_Chrome()
  Dim driver As New ChromeDriver
  driver.Get "https://www.google.co.uk"
  driver.Quit
End Sub
`

mogulman52 avatar Nov 25 '17 17:11 mogulman52