florentbr / SeleniumBasic

A Selenium based browser automation framework for VB.Net, VBA and VBScript
BSD 3-Clause "New" or "Revised" License
420 stars 196 forks source link

Selenium fails with 4 different browsers #196

Open RogerCooper11590 opened 4 years ago

RogerCooper11590 commented 4 years ago

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 (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. I tried on a different computer and using VBA in Excel 2013 with identical results.

mcdonje commented 4 years ago

Since nobody appears to be actively maintaining this library, the drivers are out of date.

You need to go to the selenium project downloads page and follow links to get the bindings you need the versions of the browsers you're intending to automate.

For instance, chrome: https://sites.google.com/a/chromium.org/chromedriver/downloads

Once you get the updated drivers, copy them into the existing SeleniumBasic folder. (On windows, something like this: C:\Users\%username%\AppData\Local\SeleniumBasic). Replace the existing EXEs.

RogerCooper11590 commented 4 years ago

I did not have the drivers in the correct location. It is working now.

Roger Cooper

CosmosChoc commented 8 months ago

Hi Roger, can you tell what is the correct location for the webdrivers ? I tried different locations and also added the paths in the system environment variables but I still get the errors you mentionned

DecimalTurn commented 3 months ago

@CosmosChoc I know it's been a while, but if you or anyone still needs to know, the folder is this one: %LocalAppData%\SeleniumBasic