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)
profile.set_preference("network.proxy.http_port", 1000)