代码
from selenium import webdriver
wd = webdriver.Chrome(r'D:develop_studychromedriverchromedriver')
wd.implicitly_wait(5)
wd.get('http://fr.soundhw.com:9999/')
elements = wd.find_elements_by_css_selector('.bi-absolute-layout > .bi-single')
for element in elements:
print(element.text)
代码运行结果
D:develop_studypythonPython38-32python.exe D:/code_file/first_web/运维/帆软自动登录.py
Process finished with exit code 0