问题
we have options.add_argument("--use-fake-ui-for-media-stream") options.add_argument("--use-fake-device-for-media-stream") to send fake media to chrome. Is there any such option available for edgedriver? and if what are those?
回答1:
one can allow mic/video in edge using
option = Options()
#capabilities = webdriver.DesiredCapabilities.EDGE.copy()
option.set_capability("dom.webnotifications.enabled", 1)
option.set_capability("permissions.default.microphone", 1)
option.set_capability("permissions.default.camera", 1)
print type(option)
op= option.to_capabilities()
driver = webdriver.Edge(capabilities=op)
来源:https://stackoverflow.com/questions/54560074/how-to-allow-mic-camera-in-edge-web-browse-suing-selenium