Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
运行时错误';33';尽管ChomeDriver正确,Selenium/Excel VBA_Excel_Vb.net_Selenium - Fatal编程技术网

运行时错误';33';尽管ChomeDriver正确,Selenium/Excel VBA

运行时错误';33';尽管ChomeDriver正确,Selenium/Excel VBA,excel,vb.net,selenium,Excel,Vb.net,Selenium,尝试开始使用Selenium/ExcelVBA进行一些清理。由于运行时错误“33”,无法启动 搜索仅发现了一个案例,通过将Selenium版本与正确的ChromeDriver版本匹配来解决问题。我已经使用了.75和.74的Chrome浏览器版本,以及相应的正确ChromeDriver版本。不管怎样,都是同样的错误 `Public Sub seleniumtutorial() Dim bot As New WebDriver bot.Start "chrome", "http://google.

尝试开始使用Selenium/ExcelVBA进行一些清理。由于运行时错误“33”,无法启动

搜索仅发现了一个案例,通过将Selenium版本与正确的ChromeDriver版本匹配来解决问题。我已经使用了.75和.74的Chrome浏览器版本,以及相应的正确ChromeDriver版本。不管怎样,都是同样的错误

`Public Sub seleniumtutorial()

Dim bot As New WebDriver
bot.Start "chrome", "http://google.com"
bot.Get "/"
bot.TakeScreenshot.SaveAs (ActiveWorkbook.Path + "/screenshot.jpg")
bot.Quit
'quit method for closing browser instance.
End Sub'
bot.Start行引发运行时错误“33”

“运行时错误'33':

SessionNotCreatedErro 会话未创建异常 来自未知错误:Runtime.executionContextCreated具有无效的“上下文” {“auxData”:{frameId”:“D306…….1C”,“isD”

(会话信息:chrome=75.0.3770.142)

事先感谢您的帮助:)

PS-目前

ChromeDriver 75.0.3770.140 谷歌浏览器版本75.0.3770.142(官方版本) Windows10Pro,1809 硒碱性2.0.9.0 Excel 360,64位