If you need to work with mouse hovers in your tests it may not be obvious how to do this with Selenium. And a quick search through the documentation will likely leave you befuddled forcing you to go spelunking through StackOverflow … Read More
Selenium / Appium Xpath Techniques and Examples
Basic XPath starts with a star (*) The XPath starts with //* helps to find any matching the attribute specified Sample XPath To find any element using its attributes/properties Basic XPath starts with a tag … Read More
How To Select from a Dropdown in Selenium Java, Python, Ruby, C#
Selecting from a dropdown list seems like one of those simple things. Just grab the list by it’s element and select an item within it based on the text you want. While it sounds pretty straightforward, there is a bit more … Read More
How To Work with JavaScript Alerts in Selenium Java, Python, Ruby, C#
If your application triggers any JavaScript pop-ups (a.k.a. alerts, dialogs, etc.) then you need to know how to handle them in your Selenium tests. Built into Selenium is the ability to switch to an alert window and either accept or dismiss it. … Read More
How To Work with Frames (iframe) in Selenium Java, Python, Ruby, C#
On occasion, you’ll run into a relic of the front-end world — frames. And when writing a test against them, you can easily get tripped if you’re not paying attention. Rather than gnash your teeth when … Read More
How To Use Selenium Grid Java, Python, Ruby, C#
If you’re looking to run your tests on different browser and operating system combinations but you’re unable to justify using a third-party solution like Sauce Labs then what do you do? With Selenium Grid you can stand up a simple … Read More
How To Download a File with Selenium PYTHON, RUBY, JAVA
Just like with uploading files we hit the same issue with downloading them. A dialog box just out of Selenium’s reach. A Solution With some additional configuration when setting up Selenium we can easily side-step the dialogue box. This is done by instructing the browser to download files to a specific location … Read More
How To Visually Verify Locators and Highlight Elements In Your Selenium Tests
It’s likely that you’ll run into odd test behaviour that makes you question the locators you’re using in a test. But how do you interrogate your locators to make sure they are doing what you expect? By leveraging some simple … Read More
How To Add Growl Notifications To Your Selenium Tests
Good test reports are a fundamental component of successful test automation. But running down a test failure by looking at a test report can be a real pain sometimes. By leveraging something like jQuery Growl you can output … Read More
How To Press Keyboard Keys in Selenium
On occasion, you’ll come across functionality that requires the use of keyboard key presses in your tests. Perhaps you’ll need to tab to traverse from one portion of the page to another, back out of … Read More