Skip to content

change vendor and renderer of webgl #2168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
YOTYTeaM opened this issue Oct 7, 2023 · 3 comments
Closed

change vendor and renderer of webgl #2168

YOTYTeaM opened this issue Oct 7, 2023 · 3 comments
Labels
question Someone is looking for answers

Comments

@YOTYTeaM
Copy link

YOTYTeaM commented Oct 7, 2023

how can i change vendor and renderer of webgl
i tried so much to do that but i failed
can you help me?

@mdmintz mdmintz added the question Someone is looking for answers label Oct 8, 2023
@mdmintz
Copy link
Member

mdmintz commented Oct 8, 2023

There are two different pytest command-line options that you can use for changing WebGL rendering:

--enable-3d-apis  # (Enables WebGL and 3D APIs.)
--swiftshader  # (Chrome "--use-gl=angle" / "--use-angle=swiftshader-webgl")

If using the Driver(), DriverContext() or SB() managers, then you can set a method arg to activate those. Here are those args with the default settings: (Set one or both to True to activate.)

enable_3d_apis=None,  # Enable WebGL and 3D APIs.
swiftshader=None,  # Chrome: --use-gl=angle / --use-angle=swiftshader-webgl

@mdmintz mdmintz closed this as completed Oct 8, 2023
@YOTYTeaM
Copy link
Author

YOTYTeaM commented Oct 8, 2023

its true.
i mean that changing vendor and renderer to custom variables, how can i?

@mdmintz
Copy link
Member

mdmintz commented Oct 9, 2023

Those are the available options. There's no option for faking the graphics/vendor/renderer settings.

@seleniumbase seleniumbase locked as resolved and limited conversation to collaborators Nov 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Someone is looking for answers
Projects
None yet
Development

No branches or pull requests

2 participants