Get familiar with the SeleniumBase API

Image for post
Image for post

SeleniumBase framework comes with a set of pre-defined APIs or helper methods for us to use. In this post, we will get familiar with some of the common APIs such as click, get_text, assert_text, etc… and understand how it works and which ones to use when.

💭 Why use SeleniumBase API?

It even comes with some additional helper methods which you typically would have to create on your own when directly using Selenium commands.

Scenario #1 — Click on a button and assert URL

Image for post
Image for post

Scenario #2 — Scroll and assert the text of the element

Image for post
Image for post

Check out the video below to learn more about the SeleniumBase APIs –

📧 Subscribe to my mailing list to get access to more content like this
👍 Follow automationbro on Twitter for the latest updates

I love coffees! And, if this post helped you out and you would like to support my work, you can do that by clicking on the button below and buying me a cup of coffee -

Image for post
Image for post

You can also support me by liking and sharing this content.

Thanks for reading!

SDET Architect | YouTuber | Tech Blogger | Love to explore new tools and technologies. Check out my YouTube channel — https://youtube.com/automationbro

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store