简体   繁体   中英

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:

browser.back()

This will back to the last visited URL in the history as described in the API documentation .

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM