[英]python: how to go “back” a page with splinter
I need to iteratively submit data to a page then re-visit the page: 我需要迭代地将数据提交到页面,然后重新访问该页面:
from splinter import Browser
with Browser() as browser:
# Visit URL
url = "http://tefam.biochem.vt.edu/tefam/search_seq_form.php"
browser.visit(url)
Instead of repetitively revisiting, how do I simply go "back" to the previous page? 除了重复访问之外,我如何简单地“返回”上一页?
Using the Browser back() method: 使用浏览器back()方法:
browser.back()
This will back to the last visited URL in the history as described in the API documentation . 如API文档中所述,这将返回到历史记录中最后访问的URL。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.