question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I can no longer attach to an Existing Instance of Chrome since Chrome was updated to 114.0.5735.199 (Official Build) (64-bit) (cohort: Stable) in Late June

See original GitHub issue

The below code from your examples spreadsheet Module1.browsers_debug used to work.

Since Chrome was updated (and chromedriver was updated) in late June it no longers works. I have confirmed this on two different machines. I get the following error VBA error:

UnknownError
unknown error: cannot connect to chrome at localhost:9222
from chrome not reachable
  (Driver info: chromedriver=114.0.5735.90 (386bc09e8f4f2e025eddae123f36f6263096ae49-refs/branch-heads/5735@{#1052}),platform=Windows NT 10.0.17134 x86_64)

Private Sub Connect_To_Chrome()
  'Use this command line to launch the browser:
  'chrome.exe -remote-debugging-port=9222
  
  Dim driver As New ChromeDriver
  driver.SetCapability "debuggerAddress", "127.0.0.1:9222"
  driver.Get "https://en.wikipedia.org"
  driver.Quit
End Sub

Issue Analytics

  • State:open
  • Created 3 months ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
HenryJamesWascommented, Jul 18, 2023

Hi, GCuser99. I just tried your code. It loaded the json file. I am now able to attach to that session of chrome. To my knowledge, I didn’t have other browsers instances open before. In any event, I can now connect to the browser. Your suggestion of running the taskkill command prior to launching chrome in debugging mode appears to have solved my problem! Thanks!

0reactions
GCuser99commented, Jul 13, 2023

@HenryJamesWas, curious if you ever figured this one out?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ChromeDriver No Longer Allowing Attaching to Existing ...
The browser would then go to the website. Since the update to Chrome version 114.0.5735.135 (Official Build) (64-bit) (cohort: Stable), I can no...
Read more >
Fix Chrome update problems & failed updates
This computer will no longer receive Chrome updates because Windows XP and Windows Vista are no longer supported; Google Chrome may not be...
Read more >
Issues · florentbr/SeleniumBasic
I can no longer attach to an Existing Instance of Chrome since Chrome was updated to 114.0.5735.199 (Official Build) (64-bit) (cohort: ...
Read more >
Chrome Releases: Stable Channel Update for Desktop
Stable Channel Update for Desktop ... The Stable and extended stable channels has been updated to 114.0.5735.198 for Mac and Linux and 114.0....
Read more >
Selenium - This version of ChromeDriver only supports ...
For mac: Go to Chrome Browser > Help > About and check out what's the version. Mine was: 116.0. 5845.96.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found