What about waiting a while for page fully loaded.
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"))
see more on splinter
documents
hope it helpful ..
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.