Skip to content

How Can I change WebGL information? #2248

Answered by mdmintz
damidoug asked this question in Q&A
Discussion options

You must be logged in to vote

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:

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,
        )

The…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dimaslanjaka
Comment options

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants