python selenium如何设置firefox BrowserCommunicationPort

问题描述 投票:0回答:1

C#

ffDriverService.BrowserCommunicationPort = 1000

蟒蛇

? 

我只找到这个代码

:param port:在指定端口上运行远程服务。默认为0,它绑定到系统选择的随机开放端口。

 class Service(service.Service):
  """Object that manages the starting and stopping of the
  GeckoDriver."""

   def __init__(self, executable_path, port=0, service_args=None,
             log_path="geckodriver.log", env=None):
      print(port)
python selenium
1个回答
0
投票
profile.set_preference("network.proxy.http_port", 1000)
© www.soinside.com 2019 - 2024. All rights reserved.