Example usage for com.vaadin.testbench.elements NotificationElement getType

List of usage examples for com.vaadin.testbench.elements NotificationElement getType

Introduction

In this page you can find the example usage for com.vaadin.testbench.elements NotificationElement getType.

Prototype

public String getType() 

Source Link

Document

Returns type of the Notification element.

Usage

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*/
    }
}