Links tagged: selenium
Frontend Testing Zoo - Or, Nightwatch without Selenium - 5π - fish's blog
What I always find hardest to figure it when it comes to unknown systems, it’s ‘how things fit together’. These project might have great documentation, but how the ecosystem plays together is usually left as an exercise for the reader. This happened to me again when diving into frontend testing. I figured out how to get nightwatch+selenium-standalone+chromedriver+chrome working somehow, without fully understanding each part in the puzzle. I went with Nightwatch because I like the syntax and it seems one of the obvious options nowadays. That works until I updated some dependencies and broke everything again. So I took some time to figure out how these things fit together and what is really needed for me tests. I’ve learned that Selenium is the godmother of modern frontend testing. It’s a framework with bindings for multiple languages. To decouple the server from the actual browsers, it invented “Selenium RC” as a protocol. That lead to the development of the WebDriver W3C standard which replaces Selenium RC is newer versions and is implemented for the most common browsers (Chrome -> Chromedriver, Firefox -> FirefoxDriver).
August 15th 2017
How we made automatic nightwatch.js tests more stable and faster
tl;dr: when using Selenium server and Nightwatch.js write as small test suites as possible and for running these suites quickly use our Partition tool
July 28th 2017
How to solve Selenium focus issues - makandropedia
Selenium cannot reliably control a browser when its window is not in focus, or when you accidentally interact with the browser frame. This will result in flickering tests, which are "randomly" red and green. In fact, this behavior is not random at all and completely depends on whether or not the browser window had focus at the time.
This card will give you a better understanding of Selenium focus issues, and what you can do to get your test suite stable again.
July 28th 2017
maxgalbu/nightwatch-custom-commands-assertions: Nightwatch.js custom commands and assertions
These are some commands and assertion I use when I'm testing with nightwatch.js and selenium.
July 17th 2017
List of Chromium Command Line Switches « Peter Beverloo
There are lots of command lines which can be used with the Google Chrome browser. Some change behavior of features, others are for debugging or experimenting. This page lists the available switches including their conditions and descriptions.
May 31st 2017