Browser

To use splinter you need create a Browser instance:

from splinter.browser import Browser
browser = Browser()

splinter support three drivers: chrome, firefox and zopetestbrowser

browser = Browser('webdriver.chrome')
browser = Browser('webdriver.firefox')
browser = Browser('zope.testbrowser')

Reload a page

You can reload a page using reload method:

browser.reload()

Browser.title

You can get the title of the visited page using the title attribute:

browser.title

Verifying page content with Browser.html

You can use the html attribute to get the html content of the visited page:

browser.html

Verifying page url with Browser.url

The visited page’s url can be accessed by the url attribute:

browser.url