Skip to content

Multiple Webdriver Instance #51

Closed Answered by kaliiiiiiiiii
KrAsH-CoD3 asked this question in Q&A
Discussion options

You must be logged in to vote

Async, nahh not implemented:) Don't absolutely understand it's concept yet.

But ofc possible with threading.

For multiple drivers, you can just use:

def create_driver():
    profile = profiles.Windows()
    mydriver = Chrome(profile, uc_driver=False)

    driver = mydriver.start()  # or .Android
    return driver

drivers = []
for i in range(5):
    drivers.append(create_driver())

Note: I don't recommemd using uc_driver=True in that case because undetected-chromedriver seems to have issues with multiple drivers because of the way it patches chromedriver.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kaliiiiiiiiii
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants