A/B Testing: Validating Multiple Variations

Let’s try this on a real site.

  • On line 27, I open Eyes just as I normally would do
  • Because the page is pretty long, I make a call to capture the full page screenshot on line 28
  • There’s also a sticky header that is visible even when scrolling, so to avoid that being captured in our baseline image when scrolling, I set the stitch mode on line 29
  • Then, the magic happens on line 30 with the checkWindow call which will take the screenshot
  • Finally, I close Eyes on line 31

Setting Up the Variation

See It In Action!

For More Information



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store