Skip to content

UC drivers overlapping on Multithreading #2006

@BishoLv

Description

@BishoLv

When executing this snippet of code below it opens the required number of browsers, but it executes the next lines in the first browser only.

so if the loop runs 4 times it opens 4 browsers but opens new tap and open the link 4 times on the first browser but if i didn't use undetected driver it works well

    def start_checking(self):
        combolist_files = self.checker_combolist_box.get(0, tk.END)
        t = threading.Thread(target=self.run_threads, args=(combolist_files,))
        t.start()
    def run_threads(self, combolist_files):
        with concurrent.futures.ThreadPoolExecutor() as executor:
            for combolist_file in combolist_files:
                executor.submit(self.gCheck, combolist_file)
    def gCheck(self, combolist_file):
        with open(combolist_file) as f, SB(uc=True, block_images=True, incognito=True) as sb:
            combolist = (line.strip() for line in f)
            for combo in combolist:
                    sb.driver.execute_script("window.open('');")
                    sb.open('https://accounts.google.com/signin')

idk if this is a bug or my code isn't correct but i want to find a solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModequestionSomeone is looking for answers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions