在做一个自动生成mas语音的东西,搭配Textractor(来自 @Reality361
我想自动控制vits的本地inference的界面输入剪贴板内容然后点播放,但是selenium库怎么都找不到id
代码:
a = input()#输入inference网址#
import time
from selenium import webdriver
browser = webdriver.Edge()
browser.get(a)
browser.find_element_by_ID("tts-input").click()#暂时用click测试#
报错:
Traceback (most recent call last):
File "C:\Users\33711\OneDrive\桌面\m.py", line 7, in <module>
browser.find_element_by_ID("tts-input").click()
AttributeError: 'WebDriver' object has no attribute 'find_element_by_ID'