API screenshots without popups with Browserbear
In this Bubble tutorial we demonstrate how to take better screenshots with the Browserbear API by removing modals/popups from the from page of the New York Times.
Dismiss popups like a pro: Learn how to screenshot websites without those pesky modals using BrowserBear and Bubble.
Automate your way to clean screenshots: Discover how to interact with web elements and capture perfect images for your Bubble API projects.
Level up your Bubble skills: Master advanced techniques for web automation and enhance your no-code development abilities.
Capturing Screenshots with Browserbear
This is a quick part two to my video where I was demonstrating how you can use Browserbear to screenshot the homepage of the New York Times and one of the frustrations I found was that we get this modal or pop-up appearing and I want to be able to click continue on this to dismiss it in order to get a nice clean screenshot otherwise the whole page appears with one... yeah it looks terrible. So how have I found a way to do that? Well let me show you.
Identifying and Targeting Page Elements
I right-click I'm in a chromium browser and I just need to find the class for this element. So I'm going to copy the class here and then in Browserbear I've added in these additional two steps between my go action and my take screenshot and that is to say click and so I'm saying click on the element on the page that has this class ID. Now this is going to really vary depending on what websites you use how they're coded you might have to use the ID in this case I'm using class because that's just what I thought would make the most sense with how the New York Times are structured their page.
Configuring Browserbear Actions
Anyway you might need to be a bit more flexible with this but I'm saying target this element and then just for good measure I'm saying wait in case there's some sort of fade out animation with dismissing the modal and then I'm finally saying take screenshot. Now let me show you what I get as a result and I'm going to run this in the Browserbear dashboard but of course you could be running this through the Bubble API connector.
Running the Automation in Browserbear
Do check out our previous videos or about Browserbear for how we've got it running through the Bubble API connector but let's run the task and we can see that it's running here I'm going to go click on log and then I'm going to wait for it to complete. Okay it's completed and I'm going to scroll down and this this is the JSON that will be returned to the Bubble app if you provide your Bubble webhook and I'm going to click on the screenshot media link here and you can now see that my New York Times homepage does not contain the terms pop-up.
Browserbear's Versatility for Page Interactions
So there you have it that is how you can interact with the page in fact Browserbear has got hundreds, I don't know hundreds, they've got loads of actions that you can use to interact with the page together just the right place in order to run their automations on the page and send that data into your Bubble app.
Learning Bubble at Planet No Code
If you're learning Bubble there's no better place than planetnocode.com where you can find even more tutorials than on our YouTube channel.
Get the Complete Bundle for Just $99
Access 3 courses, 390+ tutorials, and a vibrant community to support every step of your app-building journey.
Start building with total confidence
No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.
Find every solution in one place
No more searching across platforms for tutorials. Our bundle has everything you need, with 390+ videos covering every feature and technique.
Dive deep into every detail
Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.
Save over 70%!
Valued at $80
Valued at $85
Valued at $30
Valued at $110
Valued at $45
Can't find what you're looking for?
Search our 300+ Bubble tutorial videos. Start learning no code today!
Have questions?
We have answers!
Find answers to common questions about our membership plans, programs, and more.
We're here to help you launch your no code SaaS. Reach out to the team and we'll double check our vast library for useful content. We'll advise you on how we'd tackle the same problem and there's a good chance we'll record the video to help the wider community.
As a Planet No Code member, you'll receive a discount on our Bubble coaching sessions. Monthly members receive a 10% discount, while Annual members receive a 17.5% discount. To redeem your discount, simply log into your account and book a coaching session through our platform.
Our 8-week intensive mentorship program is designed to provide personalized guidance and support to help you accelerate your startup journey. You'll be matched with a startup expert who will work with you one-on-one to set goals, overcome challenges, and make rapid progress.
To apply for the Mastery Program, simply click the "Request Invitation" button on our pricing page and fill out the application form. Our team will review your application and schedule a call with you to discuss your goals and determine if the program is a good fit for your needs.
We accept all major credit cards, including Visa, Mastercard, American Express, and Discover.
While we don't offer a free trial, we do provide a 14-day money-back guarantee. If you're not completely satisfied with your membership within the first 14 days, simply contact our support team, and we'll issue a full refund.