Answer the question
In order to leave comments, you need to log in
How to save sessions in selenium firefox?
I do this in chrome and it works great!
options = webdriver.ChromeOptions()
phone_acc = input('Введите название для сесии: ')
options.add_argument("user-data-dir=acc/" + session_acc)
options.binary_location = r'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
driver = webdriver.Chrome(chrome_options=options, executable_path=r'C:\Users\Administrator\chromedriver_win32\chromedriver.exe')
driver.set_window_position(0, 0)
driver.get('https://......')
driver = webdriver.Firefox(options=options, executable_path=r'C:\Users\Administrator\gecodriver\geckodriver.exe')�
driver = webdriver.Firefox(options=options,capabilities=caps)�
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question