Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome driver session not created exception SessionNotCreatedError chromedriver=2.21.371459 #158

Closed
Libana00 opened this issue Nov 21, 2017 · 2 comments

Comments

@Libana00
Copy link

Recently I got the following error when I try to start chrome with VBA...
33 SessionNotCreatedError
session not created exception
from unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"4624.1","isDefault":true},"id":1,"name":"","origin":"://"}
(Session info: chrome=62.0.3202.94)
(Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Windows NT 6.1 SP1 x86_64)
It has always worked with the following:

Dim selenium As Object
Set selenium = CreateObject("Selenium.ChromeDriver")
selenium.SetProfile "C:\Users\xxxxx\User Data"
selenium.Get "www.google.de"

I already downladed the new driver, set the path, but it is still not working. Any idea how to "set the driver" in code or any other solutions? I´d appreciate any help!!

@mogulman52
Copy link

mogulman52 commented Nov 25, 2017

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
`

@Libana00
Copy link
Author

Thanks for your reply, I already fixed it :-) !!, but thank you anyways...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants