SeleniumBasic
SeleniumBasic copied to clipboard
Not working :(
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
Chrome opens in a strange way
and in perticular
I also sometimes get another type of error
any help would be appreciated
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
`