猿问

为什么找不到这个元素,用的是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


明明有这个class

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

错过了年华

等待一秒就好了

慕设计2395807

RUJFIEACFVLODTCYBDSPLCHEMJRUPFBEUDSORGORNDGDPLUQMVEAKZPQLBXGVKTWTBBRHPZPXNQSILIKGJLIRTENFBQZCLHXZORHXTPYUQAJFIYUWMCYSBLCYOXYHXNQTBYBSAKZVYIRUDTAQSVKFBRMQTSOXZPMOEGJEZIEAQZPLHBLCENJZPCZYVFIPEORMCLBKUMIQTILOENDAHCYUENBRTJGEAWXTJMCEVLOKGJWGJLHEGFHWMCEHQAQGNCYMCLHEAQMUPXAJMODGKNFNJMPFMIFORFUKZCLHXTWEWYODGCSBEUQBXTWMOKAWMUZPXMVRGWSBYNQYBXNUKNJGOXZCSBEGQRHTPKHQMCWFISPRTJZBLHQZCUKSIYUXTJSPXGORGVYUQNWTPYSIRBXGQGDSBXNWZIRUQOEMURADGIZPOXZCDGCLBRTQRHPFIKAXGJVEAWFOLAQURDSHDAPFBXHQJFOXZJLACZCZUQMBEGWLWFHQTWYBEFOFOHQGPYOKGPRHBKGVSBDAJFIKAIFVCZVLNQZOKGWFGOLIESHQMJMOXNDNKTVYORGWGUKSBKZWFBXZJANWLOXADLOEUIXZWZHQGOKHSBQMBLTJMDAFUDNJFHKMWLLACYHDMVRODCYAWSOKMPYBSUDNPLUKSPYCRADTBKAJZPUDMPEAJYIYILHWZVEOLAJNFUQFUEUQMJZOENWFUENJMCZCEAUXTJSPYHPYGPSIRTQNIEAXTGCYOSFLHKGQLBLUQAJFUVYNKZJSVMBXUWZOWFPYEHWZVRTJLCYFUJZIYGDTCZRNJYUXZCFVYZODGVFIXNXTWYUXGCLBXHREUQMBENCZCMYHWMPKZVFCSGOWTVLHEZCTZBXGWSAQNJE
随时随地看视频慕课网APP

相关分类

Python
测试
我要回答