In Selenium, it's a common for the tool to get ahead of the browser. Thus, the element we want to click on does not exist yet - but it will! We’ll start with a sample html page that pauses four seconds before injecting a link onto the page. In practice, this would probably be a wait for javascript to make a REST API call and push the results into the document. Our naive test for the link [...]
Recent Posts
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 [...]
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 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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
Categories
- Accessibility Testing
- Agile
- AI
- Analytics
- Android
- AngularJS
- Appium
- Appium Resources
- Automation
- Best Practices
- Chef
- Contests
- Continuous Delivery
- Continuous Integration
- Continuous Testing
- Cross Browser Testing
- DevOps
- Events
- Guest Blog Posts
- IoT
- Java
- JavaScript
- Jenkins
- JIRA
- JUnit
- Load Testing
- Machine Learning
- Mobile
- Mobile Development & Testing
- News & Product Updates
- Open Sauce
- Open Source
- Performance Testing
- Press
- Product Updates
- Protractor
- QA
- Quality Assurance
- Quality Engineering
- Releases
- Ruby
- Sauce Product Info
- Scrum
- Security Testing
- Selenium
- Selenium Resources
- Software Development & Testing
- The Story of Sauce
- Uncategorized
- Videos
- WebdriverIO
- Webinars