简体   繁体   中英

Selenium python, multiple geckodriver instances

I m trying to find out, how i can run and control different instances of Firefox using selenium in python. I m using the geckodriver, to run Firefox. I know, that i can have multiple Profiles in Firefox and that i can run a new Profile seperatly under about:profiles. This would solve my problem, if i knew how i can switch between the windows coresponding to the different profiles. I d be happy, if someone could tell me, how to do that and even more, if someone knows of a threat, where i can read up on it. Thanks for your time.

Thanks for the answere. I ll read into it more. For now i ve found a simpler solution, to my problem. I can say driver1 = webdriver.Firefox(PATH) and driver2 = webdriver.Firefox(PATH) and then control them separately. Sorry that i bothered when it was so easy and thanks for the help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM