Can I open Selenium Remote Webdriver with a specific remote profile (not temporary) on the server?
I only managed to transfer browser_profilefrom the client. If I create an instance of the class without browser_profileSelenium creates a new temporary profile on the server.
from selenium import webdriver
class Remote(webdriver.Remote):
def __init__(self, **kwargs):
capabilities = {_**whatever_}
super().__init__(
command_executor='http://HOST:PORT/wd/hub',
desired_capabilities=capabilities.copy(),
browser_profile=webdriver.FirefoxProfile(_what?_)
)
source
share