请问如何点击东方财富网中的"涨幅榜"

img
这个"涨幅榜"好像不是按钮属性,selenium点不了

zfb=driver.find_element_by_class_name("th-inner sortable")#会报错

报错:selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".th-inner sortable"}

点击一次之后,class属性会发生变化,所以不适用于class定位

zfb=driver.find_element_by_xpath('//*[@id="dataview"]/div[2]/div[2]/table/thead/tr/th[7]/div')
zfb.click()

如有帮助,请在【本答案右上角】选择【采纳】
若有不解,欢迎追问