Automation
-
That time I needed to create 20k short links, and how I did it on AWS
This problem landed on my lap awhile ago, and I've seen it come up time and time again so I wanted to share how we went about it. Our marketing team was submitting one of our products for a review for...
read article -
Rerunning test suites with webdriverio and a failed suite reporter
UI browser tests can be flaky, and it can be really frustrating to have to re-run a test suite because 1/50 tests failed and most likely, it'll work on the next run. webdriverio offers retries but...
read article -
Writing quick and dirty scripts using bash
You have a few lines you've been typing in your shell, and you'd like to just run it the way you run any other CLI including options. If you're writing a shell script, here's a few tips to help you...
read article -
WebdriverIO tips: finding your errors when using waitUntil
If you're loading a page and want to make sure that some elements are showing up before advancing, you'd be inclined to use browser.waitUntil(). While it does do the job, it holds onto the errors...
read article -
WebdriverIO tips: get text from a list of items
There's a few ways to go about getting text from a list of elements, but there's a gotcha with webdriverIO that can make your tests a lot flakier. The easiest way should be to: // get some of the...
read article -
WebdriverIO tips: using browser.debug() to help debug your tests
Ever want to stop your Selenium tests halfway and try to see what your tests are seeing? Using .debug() helps but be aware of your test timeouts & context around your code. EDIT 10/2019 - I've...
read article -
WebdriverIO tips: using $$(selector) vs browser.elements(selector)
Last week, I started working on integrating a test suite previously built using Nightwatch, and making it work with webdriverIO. While I love all of webdriverIO's features like synchronous code when...
read article -
Simple automated testing for a static website with Nightwatch.js
If you're following along, in my previous post, i was building a blog with gatsby. Now that I've got some changes made to my blog, I want to make sure that the blog is loading at least and click...
read article