Sauce Labs
Blog

Recent Posts

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 [...]

Selenium Tips: Efficiently Removing Cookies
Posted by Matthew Heusser in Selenium Resources

Let’s say you have a simple SaaS application with a setup that starts a browser and logs in. Towards the end of the test, the cleanup logs the user out, so the next test will run on time. But something goes wrong, and logout does not happen. The next test will go to the wrong screen, a screen with no username, password, or submit button field, causing long delays as the test waits for [...]

5 Tips for Building a Mobile App that People Actually Use
Posted by Twain Taylor in MobileMobile Development & TestingSoftware Development & Testing

Whether a startup or large enterprise, every organization is in the business of building mobile apps. Tremendous growth is expected in both usage of and revenue from mobile apps between now and 2022. AppAnnie currently estimates that the four billion connected mobile devices now in use worldwide will double to eight billion devices in 2022. These devices will account for revenue growth estimated [...]

New Headless Browser Testing Offered to Help Speed Development

Headless browsers are gaining in popularity as a viable option for testing web-based apps. As discussed in our Headless Testing 101 blog post, this is a great way to test efficiently in the early stages of your software development process. We just announced a new offering that we’re particularly excited about: Sauce Headless, which is the first-of-its-kind cloud-based headless testing [...]

Free Trial

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