cangxia0528 2024-08-02 16:38 采纳率: 0%
浏览 13
已结题

Selenium无法连接到Edge浏览器的远程调试端口

问题:Selenium无法连接到Edge浏览器的远程调试端口

img


(已通过命令行正常启动,但未监测端口。更换端口问题相同。)


```python
# 临时测试:sl.py
from selenium import webdriver
from selenium.webdriver.edge.service import Service as EdgeService
from selenium.webdriver.edge.options import Options

edge_driver_path = "C:\\python\\edge\\msedgedriver.exe"
service = EdgeService(executable_path=edge_driver_path)

edge_options = Options()
edge_options.add_experimental_option("debuggerAddress", "127.0.0.1:9515")

driver = webdriver.Edge(service=service, options=edge_options)

driver.get("http://example.com")

运行反馈:

img

(与图1问题相同。)

排因:

img


(Windows防火墙)

img


(入站规则)

img


(版本)

  • 写回答

1条回答 默认 最新

  • cangxia0528 2024-08-03 17:36
    关注

    更换浏览器后问题被迂回解决了。不知道产生的确切原因,但目前是可行的了。

    评论

报告相同问题?

问题事件

  • 系统已结题 8月10日
  • 创建了问题 8月2日

悬赏问题

  • ¥15 软件工程用例图的建立(相关搜索:软件工程用例图|画图)
  • ¥15 如何在arcgis中导出拓扑关系表
  • ¥15 处理数据集文本挖掘代码
  • ¥15 matlab2017
  • ¥15 在vxWorks下TCP/IP编程,总是connect()报错,连接服务器失败: errno = 0x41
  • ¥15 AnolisOs7.9如何安装 Qt_5.14.2的运行库
  • ¥20 求:怎么实现qt与pcie通信
  • ¥50 前后端数据顺序不一致问题,如何解决?(相关搜索:数据结构)
  • ¥15 基于蒙特卡罗法的中介效应点估计代码
  • ¥15 罗技G293和UE5.3