# Get familiar with the SeleniumBase API

SeleniumBase framework comes with a set of pre-defined [APIs](https://seleniumbase.io/help_docs/method_summary/) 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?**
SeleniumBase API provides us with helper wrapper methods to use that are built on top of regular selenium commands. These wrapper methods make working with Selenium a lot easier as it comes with in-built smart wait features to make your tests more reliable. So, you do not have to worry about adding waits or sleeps after every other command, as all of that gets dealt with by SeleniumBase APIs.

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**

![Scenario1](https://dev-to-uploads.s3.amazonaws.com/i/u3k1ru7f6mnxoqousd9q.png)

---

### **Scenario #2 – Scroll and assert the text of the element**
   
![Scenario2](https://dev-to-uploads.s3.amazonaws.com/i/26hold5zdoumkzqz2top.png)

---

### **Check out the video below to learn more about the SeleniumBase APIs –**
<iframe width="661" height="399" src="https://www.youtube.com/embed/wXBT0XZ2RfA" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

---

📧 Subscribe to my [mailing list](https://automationbro.com/mailing-list) to get access to more content like this 

👍 Follow [automationbro](https://twitter.com/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 -

<a href="https://www.buymeacoffee.com/automationbro">![Buy me a coffee](https://dev-to-uploads.s3.amazonaws.com/i/4aw2ub3f4qkyjk0ivwt4.png)</a>

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

Thanks for reading!
