0

I'm new to programming. How do you integrate this code?:

from selenium import webdriver

chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("--incognito")

driver = webdriver.Chrome(chrome_options=chrome_options)
driver.get('https://google.com')

To Multilogin's port allocation?

from selenium import webdriver
from selenium.webdriver.firefox import options
import requests


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
resp = requests.get(mla_url)
json = resp.json()
opts = options.DesiredCapabilities()
driver = webdriver.Remote(command_executor=json['value'], desired_capabilities={})

I got the above code from their website's https://docs.multilogin.com/l/en/article/ufxks62hb4-selenium-browser-automation And I saw the incognito chrome_options from this query Python/Selenium incognito/private mode

0 Answers0