Here’s a cheeky bit of code that’ll help you to dismiss an alert box. If you don’t know what an alert box is then head to http://lazyautomation.co.uk/lazy4.html and click the ‘Click Me’…
This had me stumped for a little while, every time I went to test a website that used a language like German or Greek and a foreign character cropped up…
It’s possible to convert a drop-down to an array using just one line of code like so. As you can see we’ve created a variable called optionsArray and then assigned…
Sometimes people use iframes on websites and when they do this and they put elements like buttons that you want to click inside the iframes then this means you actually…
Let’s have a look at a couple of simple methods that we can use to validate that an automated test has either passed of failed. We’re going to do this…
When you first start trying to automate web testing there’s one issue that you’ll probably run into fairly quickly. Webpages don’t always load that quickly and there’s also the added…
NOTE: The following tutorial uses Chrome for the examples. Let’s have a look at how to use Watir and Ruby to take control of the most commonly used web elements…
You don’t necessarily need to install an IDE to write your Ruby scripts, you could run everything from the IRB (Interactive Ruby Shell) or just write them in Notepad but…
Please Note: The following tutorial is applicable for Windows 7, XP and Vista. Step 1 – Install Ruby (Version 1.9.3-p448) First things first, let’s download and install Ruby, the king…