In the process of creating an automated testing framework in Java and Selenium, I have encountered a scenario where I need to examine how a web application behaves when accessed by a user with a device lacking a camera.
Is there a method to simulate this on a laptop equipped with a camera?
Expected Result: The function navigator.mediadevices.enumerateDevices() should return null.