Trouble Using Selenium from Access

RogerCooper

Registered User.
Local time
Today, 16:37
Joined
Jul 30, 2014
Messages
384
I am trying to use Selenium to interact with websites. However, whenever I try to run I receive errors, with a different error for each browser. Is there something else I need to download?

My code
Code:
Function AutomationTest()
Dim bot As New WebDriver
bot.Start "firefox", "[URL]http://google.com[/URL]"
End Function

My error messages are:

IE: Page opens briefly and the closes. No error message

Chrome: Page does not open. Receive error
SessionNotCreatedError
session not created exceptopm
from unknown error: Runtime.exceutionContextCreated has invalid 'context':
("auxData":("frameId":2A8788729284AC9BDB8E7D1333A28DA1","isD <message was cutoff>
(Session info: chrome=78.0.3904.70)

Firefox: Blank page opens. Then the error:
Run-time error '21':
TimeoutError
Firefox failed to open the listening port 127.0.0.1:65504 within 15s

Edge: Page does not open. Receive error
Run-time error '21':
TimeoutError
The driver failed to open the listening port 127.0.0.1:49950 within 10s
Environment Windows X, Running VBA in Access 2013, Selenium v2.0.9.0
All the drivers have been updated
 
Hi. I haven't tried using Selenium, but would there be switch available to dictate how the browser window should behave? For example, when you try to open a DOS window, there's the /c switch. Or, when you try the Shell API, there's the WindowNormal or WindowHidden or WindowMinimize parameters.
 
I was able to resolve this. The driver needed to be in c:\Users\<User Name>\AppData\Local\SeleniumBasic. There is a clear explanation on udemy.com
 
I was able to resolve this. The driver needed to be in c:\Users\<User Name>\AppData\Local\SeleniumBasic. There is a clear explanation on udemy.com
Hi. Thanks for the update. Glad to hear you got it sorted out. Good luck with your project.
 

Users who are viewing this thread

Back
Top Bottom