Skip to content

Instantly share code, notes, and snippets.

Selenium in Action selenium-in-action

Block or report user

Report or block selenium-in-action

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
selenium-in-action /
Last active May 28, 2017
Check if element is displayed (and catching NoSuchElementException)
import org.openqa.selenium.By;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebDriver;
public class DisplayUtil {
* If exception occurs the element can't be visible
public static boolean isDisplayed(final WebDriver driver, final By by) {
You can’t perform that action at this time.