You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I run the program .The program hold after print("开始创建 Firefox 浏览器实例").
That is to say, It is held on the setence: browser = webdriver.Firefox(service=service, options=firefox_options)
without anything tip.
Can anyone tell me how to solve this problem?
Thanks very much.
The text was updated successfully, but these errors were encountered:
Thanks for the hint that it was posted twice. Let me close the issue for now, but I'm happy to reopen if it turns out to be a problem with geckodriver.
Hello,I install selenium and geckodriver on Ubuntu24.04 system.
and then write the test program as follows:
from selenium import webdriver
from selenium.webdriver.firefox.service import Service
geckodriver_path = '/usr/bin/geckodriver'
firefox_options = webdriver.FirefoxOptions()
firefox_options.add_argument('-headless') # 无头模式,不显示浏览器窗口
try:
print("开始创建 Firefox Service 对象")
# 使用 Service 类来指定驱动程序的路径
service = Service(executable_path=geckodriver_path)
print("Firefox Service 对象创建成功")
except Exception as e:
print(f"发生错误: {e}")
when I run the program .The program hold after print("开始创建 Firefox 浏览器实例").
That is to say, It is held on the setence: browser = webdriver.Firefox(service=service, options=firefox_options)
without anything tip.
Can anyone tell me how to solve this problem?
Thanks very much.
The text was updated successfully, but these errors were encountered: