0
点赞
收藏
分享

微信扫一扫

Selenium+Remote WebDriver+python脚本访问示例

年夜雪 2024-01-13 阅读 9

Playwright 可以连接到运行 Selenium 4 的 Selenium Grid Hub 来启动 Google Chrome 或 Microsoft Edge 浏览器,而不是在本地机器上运行浏览器。

下载Selenium Grid

打开selenium官方https://www.selenium.dev/downloads/下载Selenium Server (Grid)
目前最新版本4.16.1

下载地址https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.16.0/selenium-server-4.16.1.jar

在将Playwright连接到Selenium网格之前,请确保网格与Selenium WebDriver一起工作。
例如,运行其中一个示例并传递SELENUM_REMOTE_URL环境变量。如果webdriver示例不起作用,请在Seleniumhub/note/stalone输出中查找任何错误,并搜索Selenium issues以寻找可能的解决方案。

举报

相关推荐

0 条评论