python selenium如何设置firefox BrowserCommunicationPort

时间:2018-11-06 13:03:58

标签: python selenium

c#

ffDriverService.BrowserCommunicationPort = 1000

python

? 

我只能找到此代码

:param端口:在指定端口上运行远程服务。             默认值为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)

1 个答案:

答案 0 :(得分:0)

profile.set_preference("network.proxy.http_port", 1000)