提问人:Sumanto 提问时间:9/6/2023 最后编辑:Sumanto 更新时间:9/6/2023 访问量:43
使用 Python 在 Selenium 中自动关闭 Edge 浏览器
Auto close Edge browser in Selenium with Python
问:
我一直在尝试运行selenium脚本。代码运行良好,但浏览器(Edge)会自动关闭。
以下是我收到的错误。
\[19796:19404:0905/212543.583:ERROR:fallback_task_provider.cc(124)\] Every renderer should have at least one task provided by a primary task
provider. If a "Renderer" fallback task is shown, it is a bug. If you have repro steps, please file a new bug and tag it as a dependency of crbug.com/739782.
\[19796:19404:0905/212549.269:ERROR:fallback_task_provider.cc(124)\] Every renderer should have at least one task provided by a primary task
provider. If a "Renderer" fallback task is shown, it is a bug. If you have repro steps, please file a new bug and tag it as a dependency of crbug.com/739782.
我该怎么办?
我正在运行的代码:
from selenium import webdriver
from selenium.webdriver.common.by import By
import time
Browser=webdriver.Edge()
Browser.get("test.site")
Browser.maximize_window()
my_team=Browser.find_element(By.LINK_TEXT,'My Team').click()
time.sleep(3)
答: 暂无答案
评论