首页 > 解决方案 > Selenium 和 VBA 的错误 7 内存不足

问题描述

我已经从 Git 安装了 SeleniumWrapper,每当我尝试启动最简单的代码时,我都会不断收到此错误 7。我还安装了最新的 chromedriver 并放入了 selenium 文件。无论我使用 chrome 还是任何其他网络浏览器,都会出现问题。

这是代码:

Dim bot As New WebDriver
bot.Start "chrome"
bot.Window.Maximize
bot.Get "website"


Application.Wait Now + TimeValue("00:00:02")
 bot.FindElementByCss("#USERNAME").SendKeys ("ok")






End Sub

标签: excelvbaselenium

解决方案


推荐阅读