Class MessageListLocator
java.lang.Object
com.vaadin.browserless.locator.Locator<MessageList,MessageListLocator>
com.vaadin.flow.component.messages.MessageListLocator
- All Implemented Interfaces:
Clickable<MessageList>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class MessageListLocator
extends Locator<MessageList,MessageListLocator>
implements Clickable<MessageList>
Generated locator for
MessageList, derived from
MessageListTester. Filter steps are inherited from
Locator; action methods delegate to a fresh tester
around the resolved component, so behavioral changes belong on the
tester, not here.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEnsures the component is in a usable state before interaction.Gets the component being tested.getMessage(int index) Get message in given index.Get all messages in list.getMessages(String userName) Get all messages for a given userName.getMessages(Instant start, Instant end) Get messages between given Instant (excluding).getMessagesAfter(Instant start) Get messages after given Instant (excluding).getMessagesBefore(Instant end) Get messages before given Instant (excluding).intsize()Get amount of messages in the messageList.Methods inherited from class com.vaadin.browserless.locator.Locator
atIndex, component, components, exists, inside, inside, invalidate, self, with, withAttribute, withAttribute, withClassName, withCondition, withId, withoutAttribute, withoutAttribute, withoutClassNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.browserless.Clickable
click, click, click, middleClick, middleClick, rightClick, rightClick
-
Constructor Details
-
MessageListLocator
public MessageListLocator() -
MessageListLocator
-
-
Method Details
-
getComponent
Description copied from interface:ClickableGets the component being tested.- Specified by:
getComponentin interfaceClickable<MessageList>- Returns:
- the component under test
-
ensureComponentIsUsable
public void ensureComponentIsUsable()Description copied from interface:ClickableEnsures the component is in a usable state before interaction.- Specified by:
ensureComponentIsUsablein interfaceClickable<MessageList>
-
size
public int size()Get amount of messages in the messageList. Javadoc copied fromMessageListTester.size().- Returns:
- message count
-
getMessage
Get message in given index. index is 0 based. Javadoc copied fromMessageListTester.getMessage(int).- Parameters:
index- item index- Returns:
- message in index
- Throws:
IndexOutOfBoundsException- – if the index is out of range (index invalid input: '<' 0 || index >= size())
-
getMessages
Get all messages in list. Javadoc copied fromMessageListTester.getMessages().- Returns:
- all available messages
-
getMessages
Get messages between given Instant (excluding). Javadoc copied fromMessageListTester.getMessages(java.time.Instant,java.time.Instant).- Parameters:
start- start timeend- end time- Returns:
- messages falling between start an end time
-
getMessagesAfter
Get messages after given Instant (excluding). Javadoc copied fromMessageListTester.getMessagesAfter(java.time.Instant).- Parameters:
start- start time- Returns:
- messages after start time
-
getMessagesBefore
Get messages before given Instant (excluding). Javadoc copied fromMessageListTester.getMessagesBefore(java.time.Instant).- Parameters:
end- end time- Returns:
- messages before end time
-
getMessages
Get all messages for a given userName. Javadoc copied fromMessageListTester.getMessages(java.lang.String).- Parameters:
userName- user to get messages for (nullable)- Returns:
- messages for user, for
nullmessages without defined userName
-