[英]How can I close the microphone/camera popup in Python / Selenium?
To get rid of the Microphone/Camera
popup you can use the following arguments
from ChromeOptions
Class
: 要摆脱Microphone/Camera
弹出窗口,您可以使用ChromeOptions
Class
的以下arguments
:
Java solution: Java解决方案:
ChromeOptions options = new ChromeOptions(); options.addArguments("allow-file-access-from-files"); options.addArguments("use-fake-device-for-media-stream"); options.addArguments("use-fake-ui-for-media-stream"); WebDriver driver = new ChromeDriver(options);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.