-
When we test on https://pixelscan.net/, the WebGL information matches that of my computer. Is there a way to insert random information? It's as if we could introduce a method to randomize hardware details, the operating system (Windows, Linux, Mac, etc.), screen resolution, and more. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, that's been done before. Even before UC Mode existed, there was an integration with You can integrate it directly into the custom from seleniumbase import BaseCase
from selenium_stealth import stealth
class BaseTestCase(BaseCase):
def setUp(self):
super().setUp()
stealth(self.driver,
languages=["en-US", "en"],
vendor="Google Inc.",
platform="Win32",
webgl_vendor="Intel Inc.",
renderer="Intel Iris OpenGL Engine",
fix_hairline=True,
) Then have your test classes inherit There's general information on StackOverflow about that here: https://stackoverflow.com/q/70265306/7058266 Additionally, you could use |
Beta Was this translation helpful? Give feedback.
Yes, that's been done before. Even before UC Mode existed, there was an integration with
selenium-stealth
(#942 (comment)), which lets you "change" (fake) various properties:You can integrate it directly into the custom
setUp()
method of your tests like this after you pip install it:The…