Sauce Labs
Blog

Recent Posts

Selenium Tips - Intermediate CSS Selectors in Selenium
Posted by Matthew Heusser in SeleniumSelenium Resources

Following my previous Selenium testing Tip of The Week about Better locators in Selenium, this blog post will show you more CSS rules and how to create pseudo-classes. Not only can this help you move from XPATH to CSS, but it can help you overcome some testability issues. NEXT SIBLING Let’s start with navigating a list of elements. That is, you have one element you can reach, but you [...]

Rethinking the Role of “Journey” in Software Testing
Posted by Greg Sypolt in Quality AssuranceSoftware Development & Testing

Software quality is a journey, not a destination. Where is your organization in its quality journey? If the answer to that question is not what you wish — in other words, if your software quality is not as strong as you know it can or should be — then it’s time to rethink your approach to the software-quality journey. For many organizations, that will mean reconfiguring the ways [...]

The What and Why of Headless Testing for Kubernetes

The Sauce Labs blog previously featured the post “Headless Browser Testing 101,” covering the fundamentals of headless testing, its advantages, and the purposes for which it is used. This post takes a deeper dive into a specific aspect of headless testing: How it fits into a Kubernetes-driven CI/CD pipeline. We’ll focus on how containers and Kubernetes change testing and what [...]

Selenium Tips: Capturing A Larger Screen Area
Posted by Matthew Heusser in Selenium Resources

Capturing screenshots of your tests is one of the most important features you can give to an automation engineer. It's the easiest way to actually understand from a report, why a test failed and how to reproduce it. While our Live Testing will generate videos of the entire test by default, sometimes you just want a screenshot. Selenium supports capturing screenshots on remote machines, as [...]

Selenium Tips: Better Locators in Selenium
Posted by Matthew Heusser

In order to click on or type into an HTML element, first you need to locate that element. The easiest way to get started with locators in Selenium is probably XPATH. It is something like three clicks: Right click, inspect element, look in the developer toolbar, right click, copy XPATH (the ‘Copy XPath’ option is hidden under the Copy submenu within the context menu). Changing [...]

4 Best Practices for Testing Microservices
Posted by Twain Taylor in Software Development & Testing

The application stack has undergone fundamental changes with the advent of microservices architecture, and this has had a ripple effect on software testing. For a monolithic application released every quarter, testing was reserved for the very last week or two before release. Today, with micro-releases happening multiple times daily, software testing is more granular, it happens simultaneously [...]

Selenium Tips: Finding Elements by their Focus Using :focus, a CSS Pseudo-class
Posted by Matthew Heusser in AgileAndroid

Note - The original article references the :contains pseudo-class, which is no longer a part of the W3C standard and not supported by current browsers. Instead here we’ll tell you another way to identify hard-to-find elements - :focus As we already mentioned in our previous posts CSS Selectors in Selenium Demystified and Intermediate CSS Selectors in Selenium, CSS is a selection [...]

Selenium Tips: Taking ScreenShots on the Server
Posted by Matthew Heusser in Selenium Resources

Code is fantastic at checking for pre-determined problems - that a calculated output matches an expected result. It’s also rather bad at checking for unanticipated changes. One way to do this is to take a screen capture, store it, and compare it to the current screen - a pixel-by-pixel compare. Or store the screencaptures away and have a human review them, perhaps as thumbnails, perhaps [...]

Free Trial

Get access to a free 14-day trial version, or contact Sales for more information.