seleniumbase / SeleniumBase

📊 Python's all-in-one framework for web crawling, scraping, testing, and reporting. Supports pytest. UC Mode provides stealth. Includes many tools.
https://seleniumbase.io
MIT License
4.46k stars 909 forks source link

seleniumbase uc with proxy on ubuntu (linux) problem #2779

Closed AmirHosseinJ closed 1 month ago

AmirHosseinJ commented 1 month ago

Without a proxy things are nice but as soon as I add a proxy on Ubuntu there is a text on Chrome. Moreover, I used headless and virtual displays but the same result is always there. I have attached a screenshot taken by selenium from chrome in headless mode since there is no "headed" mode available in get_new_driver method. here is my driver setup `driver = self.sb.get_new_driver(undetectable=True,

uc_subprocess=True,

                                        user_data_dir=self.user_chrome_data_dir,
                                        # headless2=True,
                                        incognito=True,
                                        proxy=proxy_combo)`

ACCEPT TEST

mdmintz commented 1 month ago

Can't reproduce this. Could be an issue with your proxy or your user_data_dir. (Note that you can't use a user_data_dir from a regular Chrome instance because it's not compatible with UC Mode user_data_dir.)

Also, for Linux, you may want to use xvfb=True.