By default, Selenium prefers to throw an error when an element isn’t found when expected on a page. However, we can use it to detect the presence or absence of an element without error.
Also find me here:
Baeldung Author
Dmytro Budym
Software Development Engineer in Test with 7 years of experience. Passionate about building effective, robust and scalable test automation. Public speaker, tech articles author and an enthusiastic participant in the Automation Community, Open Source contributor.
Here's what I've written (so far):
Baeldung on Java
- All
- Testing (4)
- Java Array (1)
- JVM (1)
- Cloud (1)
Finding Element by Attribute in Selenium
Filed under Testing
A quick and practical guide to finding element by attribute in Selenium.
Switching Between Frames Using Selenium WebDriver in Java
Filed under Testing
Explore a few distinct methods to switch between frames with Selenium WebDriver.
Convert Java Array to Iterable
Filed under Java Array
Explore several approaches to convert a Java array to an Iterable collection.
Opening a New Tab Using Selenium WebDriver in Java
Filed under Testing
Explore two approaches to opening a new tab with Selenium.
Check if a Specified Key Exists in a Given S3 Bucket Using Java
Filed under Cloud
Learn how to check if a specified key exists in an Amazon S3 bucket using Java.
Difference Between Class.forName() and Class.forName().newInstance()
Filed under JVM
A quick and practical comparison between Class.forName() and Class.forName().newInstance()