Change desired capabilities during runtime

I have the current desired capabilities in my execution settings.

–use-fake-ui-for-media-stream

–use-file-for-fake-video-capture=sample.y4m

–use-fake-device-for-media-stream
I want to be able to change the specified file (sample.y4m) during runtime.
Is there a way to do this?

I tried this so far RunConfiguration.setWebDriverPreferencesProperty(“args”, “–use-fake-device-for-media-stream”).

Thanks!

1 Like