Select Page
Selenium Testing

Splinter – A Wrapper Library for Selenium with Python

Being a leading QA Company, we write blogs on all prominent software testing topics and tools using our real-world experience. So stay sharp by subscribing to our Newsletter.

Listen to this blog

Splinter is a python library and it has common readable wrapper methods for Selenium and zope.testbrowser frameworks. If you would like to write readable automated tests using Python, then Splinter is a good choice. As an automation testing company, exploring new tools/libraries is one of the important R&D activities. Please subscribe our blog to get the updates. Now, let’s see how to use Splinter.

How to install Splinter?

pip install splinter

Browser Launch What we have noticed with Splinter during Browser launch is the browser is launched very quickly. If you are also noticing the same, please feel free to comment over here.

from splinter import Browser
browser = Browser('chrome')

URL Navigation

browser.visit('https://codoid.com')

Find Element You can use the following methods find_by_css, find_by_xpath, find_by_name, find_by_tag, find_by_value, find_by_text, and find_by_id to locate an element.

browser.find_by_id('menu-item-54').click()

All together

from splinter import Browser

browser = Browser('chrome')

browser.visit('https://codoid.com')

browser.find_by_id('menu-item-54').click()

browser.quit()

Comments(0)

Submit a Comment

Your email address will not be published. Required fields are marked *

Talk to our Experts

Amazing clients who
trust us


poloatto
ABB
polaris
ooredo
stryker
mobility