我试过了
b.find_by_id('resourceTd_5897')
和
b.find_by_css('td#resourceTd_5897.resourceTd')
乃至
b.find_by_tag('td')
他们都提出no elements could be found with......
例外。
如何在表格中找到网格?
等待一段时间满载页面怎么样?
from splinter import Browser
b = Browser("chrome")
b.visit("https://splinter.readthedocs.io/en/latest/tutorial.html")
if b.is_element_present_by_xpath("//div[@id='create-a-browser-instance']/h2", wait_time=5):
# wait until the element's appearing
print(b.find_by_xpath("//div[@id='create-a-browser-instance']/h2"))
在splinter
documents上查看更多信息
希望它有用..