为什么找不到这个元素,用的是selenium

Promises = self.driver.find_element_by_class_name('tb-serPromise')
# Promises = driver.find_element_by_xpath('//ul[@class="tb-serPromise"]')

这两个都不行,提示selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: .tb-serPromise


https://img4.sycdn.imooc.com/5b3c87ed0001fd4f09410354.jpg

明明有这个class

错过了年华
浏览 1803回答 1
1回答

错过了年华

等待一秒就好了

慕设计2395807

RUJFIEACFVLODTCYBDSPLCHEMJRUPFBEUDSORGORNDGDPLUQMVEAKZPQLBXGVKTWTBBRHPZPXNQSILIKGJLIRTENFBQZCLHXZORHXTPYUQAJFIYUWMCYSBLCYOXYHXNQTBYBSAKZVYIRUDTAQSVKFBRMQTSOXZPMOEGJEZIEAQZPLHBLCENJZPCZYVFIPEORMCLBKUMIQTILOENDAHCYUENBRTJGEAWXTJMCEVLOKGJWGJLHEGFHWMCEHQAQGNCYMCLHEAQMUPXAJMODGKNFNJMPFMIFORFUKZCLHXTWEWYODGCSBEUQBXTWMOKAWMUZPXMVRGWSBYNQYBXNUKNJGOXZCSBEGQRHTPKHQMCWFISPRTJZBLHQZCUKSIYUXTJSPXGORGVYUQNWTPYSIRBXGQGDSBXNWZIRUQOEMURADGIZPOXZCDGCLBRTQRHPFIKAXGJVEAWFOLAQURDSHDAPFBXHQJFOXZJLACZCZUQMBEGWLWFHQTWYBEFOFOHQGPYOKGPRHBKGVSBDAJFIKAIFVCZVLNQZOKGWFGOLIESHQMJMOXNDNKTVYORGWGUKSBKZWFBXZJANWLOXADLOEUIXZWZHQGOKHSBQMBLTJMDAFUDNJFHKMWLLACYHDMVRODCYAWSOKMPYBSUDNPLUKSPYCRADTBKAJZPUDMPEAJYIYILHWZVEOLAJNFUQFUEUQMJZOENWFUENJMCZCEAUXTJSPYHPYGPSIRTQNIEAXTGCYOSFLHKGQLBLUQAJFUVYNKZJSVMBXUWZOWFPYEHWZVRTJLCYFUJZIYGDTCZRNJYUXZCFVYZODGVFIXNXTWYUXGCLBXHREUQMBENCZCMYHWMPKZVFCSGOWTVLHEZCTZBXGWSAQNJE
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python
测试