List of usage examples for com.vaadin.testbench.elements NotificationElement getType
public String getType()
From source file:com.piccritic.website.PicCriticIT.java
License:Open Source License
public void hasUserException() throws UserException { if ($(NotificationElement.class).exists()) { NotificationElement msg = $(NotificationElement.class).first(); if (msg.getType().equals("warning") && !msg.getCaption().isEmpty()) { throw new UserException(msg.getCaption()); }/*from ww w .j av a2 s. c o m*/ } }