How to use Selenium browser automation in Multilogin 6
Want to automate tasks in Multilogin 6? Whether you're crafting scripts or building advanced web crawlers, browser automation has never been easier!
Normally, with Selenium, you’d have to manually connect to a browser driver (like Firefox or Chrome). But with Multilogin 6, you can skip that hassle:
- Connect directly to a Multilogin browser profile using Remote WebDriver
- Set your desired capabilities with ease
- Run Selenium commands effortlessly
Multilogin 6 leverages Selenium WebDriver, so you can execute automation scripts smoothly without any extra setup.
Step 1: use a supported language
Since the Selenium framework supports a variety of programming languages, you can run Multilogin 6 automation in whichever language you prefer.
While Selenium works with multiple programming languages, official technical support is currently available only for Python.
Step 2: define the app listening port
Define ports MLA
Here's how to predefine your default listening port in the app.properties
file:
- Open Multilogin
- Go to “My account”
- Click “Open logs directory” – this will open the folder
/.multiloginapp.com/logs
- Navigate one folder up to
/.multiloginapp.com
- Use any text editor to open
app.properties
- Add a new line to specify the port number:
multiloginapp.port=35000
- Save the changes
Make sure the port number is between 10000 and 49151.
You can also find the app.properties
file in the .multiloginapp.com
folder:
- Windows:
C:\Users\%username%\.multiloginapp.com
- Linux:
/home/%username%/.multiloginapp.com
- macOS:
/Users/%username%/.multiloginapp.com
The folder may be hidden, depending on your OS settings. To display this folder on Mac devices, you can use the following keyboard shortcuts:
-
Cmd + Shift + H
– to display the current user's folder -
Cmd + Shift + .
(period) – to display hidden folders and files

Step 3: review the code example
Here's a Python code example for your reference:
from selenium import webdriver
from selenium.webdriver.chromium.options import ChromiumOptions
from selenium.webdriver.firefox.options import Options
import requests
# TO-DO: 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()
print(json)
# Instantiate the Remote Web Driver to connect to the browser profile launched by previous GET request
# In case of using Mimic browser
driver = webdriver.Remote(command_executor=json['value'], options=ChromiumOptions())
# In case you are using Stealthfox browser
#driver = webdriver.Remote(command_executor=json['value'], options=Options())
#Perform automation
driver.get('https://multilogin.com/')
print(driver.title)
driver.quit()