Webdriverio
-
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 -
Running webdriverio tests using headless chrome in Docker
Using headless chrome for your UI tests works great out of the box on your laptop, but it won’t work out of the box when you're trying to run your tests in Docker. One recent work project was getting...
read article -
Debugging webdriverio tests with VSCode
https://youtu.be/66E7y12GQaE ^ Update - check out my video walkthrough where I follow along with the post and show you how I set it up. https://youtu.be/wvvIz60DNp4 ^ EDIT 10/2019 – I’ve published a...
read article -
Can I use jest to run webdriverio tests?
Can I use jest to run webdriverio tests? You have a web app and you're using jest for unit testing your components. You're checking out webdriverio to run your UI tests in javascript. Webdriverio...
read article -
WebdriverIO tips: element wrapped in div is not clickable
Have you run into an error saying "Element is not clickable at point" when you're trying to click a button? You might be seeing this if you have a spinner that appears on your buttons or its...
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