Как подключиться к запущенному профилю антидетекта? Selenium chrome

Пользуюсь антидетектом Dolphin, при запуске Chrome профиля через API мне возвращают порт для подключения (http://127.0.0.1:XXXXX), но при команде

driver = webdriver.Remote(command_executor= 'http://127.0.0.1:XXXXX', created_capabilities={})

Получаю ошибку "selenium.common.exceptions.WebDriverException: Message: "

FAQ которому следую:

from selenium import webdriver
from selenium.webdriver.chrome import options
import requests

#TODO replace with existing profile ID. Define the ID of the browser profile, where the code will be executed.
mla_profile_id = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'

mla_url = 'http://127.0.0.1:35000/api/v1/profile/start?automation=true&profileId='+mla_profile_id

"""
Send GET request to start the browser profile by profileId. Returns response in the following format: '{"status":"OK","value":"http://127.0.0.1:XXXXX"}', where XXXXX is the localhost port on which browser profile is launched. Please make sure that you have Multilogin listening port set to 35000. Otherwise please change the port value in the url string
"""
resp = requests.get(mla_url)

json = resp.json()

#Define DesiredCapabilities
opts = options.DesiredCapabilities()

#Instantiate the Remote Web Driver to connect to the browser profile launched by previous GET request
driver = webdriver.Remote(command_executor=json['value'], desired_capabilities={})

#Perform automation
driver.get('https://multilogin.com/')
assert "Multilogin - Replace Multiple Computers With Virtual Browser Profiles - Multilogin" in driver.title
driver.quit()


Ответы (0 шт):