hicksi
Board Regular
- Joined
- Mar 5, 2012
- Messages
- 214
- Office Version
- 365
- 2021
- Platform
- Windows
I am having some difficulty making my Excel VBA connect to the Web using Selenium.
I have downloaded and installed SeleniumBasic-2.0.9.0.exe
I am using Microsoft® Excel® 2019 MSO (Version 2207 Build 16.0.15427.20182) 64-bit (that piece of information took some time to find, not like in the old days of Help/About)
My VBA Developer appears to be Retail 7.1.1124 (that is in Help/About)
My VBA References includes 'Selenium Type Library' sourced from .\...\...\SeleniumBasic\Selenium64.tlb
When I run it, the .Start "Chrome" results in a timeout error:
Yet Chrome is installed and I can run it:- Version 104.0.5112.81 (Official Build) (64-bit)
Similarly, if I attempt to .Start "FireFox":
... At least an instance of FireFox displays, but doesn't appear to properly initialise.
Version 103.0.1 (64-bit)
and .Start "Edge":
My installation of Edge:- Version 104.0.1293.47 (Official build) (64-bit)
Has anyone had this issue, and what is the resolution?
I have downloaded and installed SeleniumBasic-2.0.9.0.exe
I am using Microsoft® Excel® 2019 MSO (Version 2207 Build 16.0.15427.20182) 64-bit (that piece of information took some time to find, not like in the old days of Help/About)
My VBA Developer appears to be Retail 7.1.1124 (that is in Help/About)
My VBA References includes 'Selenium Type Library' sourced from .\...\...\SeleniumBasic\Selenium64.tlb
VBA Code:
Sub Sample3()
Dim driver As New WebDriver
With driver
.Start "Chrome"
.Get "google.com"
End With
Stop
End Sub
When I run it, the .Start "Chrome" results in a timeout error:
Yet Chrome is installed and I can run it:- Version 104.0.5112.81 (Official Build) (64-bit)
Similarly, if I attempt to .Start "FireFox":
... At least an instance of FireFox displays, but doesn't appear to properly initialise.
Version 103.0.1 (64-bit)
and .Start "Edge":
My installation of Edge:- Version 104.0.1293.47 (Official build) (64-bit)
Has anyone had this issue, and what is the resolution?