Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要迭代地将数据提交到页面,然后重新访问该页面:
from splinter import Browser with Browser() as browser: # Visit URL url = "http://tefam.biochem.vt.edu/tefam/search_seq_form.php" browser.visit(url)
我如何简单地“返回”到上一页,而不是重复地重新访问?
使用浏览器的 back() 方法:
browser.back()
这将返回到API 文档中描述的历史中最后访问的 URL 。