小编R-m*_*man的帖子

使用 Selenium 的 Excel VBA

我使用的是 Windows 10。
\n我尝试使用 Selenium 通过 Excel VBA 自动化 Edge 浏览器(或任何其他浏览器)。

\n

我去了https://www.selenium.dev/downloads/

\n

我在那里下载了
\nSelenium Server,最新稳定版本 3.141.59
\n和
\nPython 3.141.0 2018 年 11 月 1 日 4.0.0a6.post1 2020 年 5 月 28 日下载\n(我没有使用 Python,但将来可能会使用。)

\n

然后我打开 Excel VBA 并打开“工具”,但在下拉列表中找不到 \xe2\x80\x9cSelenium Type Library\xe2\x80\x9d 选项。

\n

我做了更多阅读,并在https://github.com/florentbr/SeleniumBasic/releases/tag/v2.0.9.0下载了 SeleniumBasic

\n

这使得选项 \xe2\x80\x9cSelenium Type Library\xe2\x80\x9d 出现在“工具”下拉列表中。

\n

我选择了 \xe2\x80\x9cSelenium Type Library\xe2\x80\x9d 选项。

\n

我在 VBA 编辑器中输入了这段代码,该编辑器是从网上下载的。它会打开 Chrome。我找不到如何打开 Edge。

\n
Sub test2()\n\n    Dim driver As New WebDriver\n    Dim rowc, cc, columnC As …
Run Code Online (Sandbox Code Playgroud)

excel vba selenium-webdriver

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

excel ×1

selenium-webdriver ×1

vba ×1