📜  模拟网络摄像头和麦克风 selenium - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:28.575000             🧑  作者: Mango

代码示例1
chromedriver = 'C:/tests/chromedriver.exe'
options = webdriver.ChromeOptions()
options.add_argument("--use-fake-ui-for-media-stream")
options.add_argument("--use-fake-device-for-media-stream")
driver = webdriver.Chrome(executable_path = chromedriver, chrome_options = options)