4
13 Comments

Using bots to test and find bugs in my apps 🤖

Are you sick and tired of (anxiously) testing your app to find all the edge cases?

Me too.

So I built a little bot that does that for me with Selenium 💆‍♀️

Watch the bot create its own morning routine ⬇️

(sure I love unit tests, but sometimes you just want to test the real thing)

bot_having_ruotines

on April 14, 2022
  1. 4

    Thats e2e testing and its pretty common to have it at least for critical features of a software. Good to know that you enjoy writing tests.

    1. 1

      Thanks for your reply! I'm still new to end-to-end testing and actually discovered Selenium when I was looking for a way to create step-by-step product videos. I had no idea that Selenium also could be used for smoke testing before recently, but I love it!

  2. 3

    I love using Selenium. Haha I'm more into writing scrapers ith Selenium rather than automating stuff.

    1. 1

      I actually discovered Selenium when I was looking for a way to create step-by-step product videos and clever scraping 🤓

  3. 3

    What are your thoughts on options like cypress? I personally like rolling my own with puppeteer / playwright

    1. 2

      Thanks for your reply!
      I'm pretty new to end-to-end tests, so I went with Selenium mostly because you can run it on all browsers, have an extensive community, and being able to use Python.

      I don't know much about Cypress (yet), is it cross-browser supported? How do you like Playwright? How is the API compared to Puppeteer? I'm curious to try it out next!

      1. 1

        being able to use Python

        That’s a good reason—most of my code is in JavaScript (well, actually TypeScript)

        Playwright and puppeteer both let you control the browser. While puppeteer can use chromium and Chrome, playwright can also use Firefox and Safari and was made by one of the devs who originally created puppeteer. The usage of puppeteer is still quite a bit higher

        1. 1

          Ah I see, then JS options make sense. All my frontends are in ReactJS, so I wouldn't mind switching.

          Thanks for letting me know more about Playwright and Puppeteer. After reading more, I'm leaning towards giving Playwright a try.

          1. 1

            (Cypress.io is also a popular option with a nice api, but I prefer using the other two)

  4. 2

    Hey! You could help me work on my open-source Instagram bot. I think it'd be amazing learning from each other. This is the landing page: https://zuck-cat.phoneworker.online/

    1. 1

      Sounds interesting! I'll def check it out! 🙏

    1. 1

      Thanks 🙏 @orliesaurus