com.atlassian.jira.pageobjects.elements
Class AuiMessage
java.lang.Object
com.atlassian.jira.pageobjects.elements.AuiMessage
- Direct Known Subclasses:
- GlobalMessage
public class AuiMessage
- extends Object
Generic AUI messages, error warning success
- Since:
- v5.0
Field Summary |
protected org.openqa.selenium.By |
context
|
protected com.atlassian.pageobjects.elements.PageElementFinder |
elementFinder
|
protected com.atlassian.pageobjects.elements.PageElement |
message
|
Constructor Summary |
AuiMessage(org.openqa.selenium.By by)
|
AuiMessage(com.atlassian.pageobjects.elements.PageElement message)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
elementFinder
@Inject
protected com.atlassian.pageobjects.elements.PageElementFinder elementFinder
context
protected final org.openqa.selenium.By context
message
protected com.atlassian.pageobjects.elements.PageElement message
AuiMessage
public AuiMessage(org.openqa.selenium.By by)
AuiMessage
public AuiMessage(com.atlassian.pageobjects.elements.PageElement message)
getMessage
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getMessage()
- Gets text of message
- Returns:
- text of message
isPresent
public com.atlassian.pageobjects.elements.query.TimedCondition isPresent()
isCloseable
public boolean isCloseable()
- Does it have a X that when clicked dismisses message
- Returns:
- if closeable or not
getType
public AuiMessage.Type getType()
- Type of message - Error, Warning, Success & UNKOWN
- Returns:
- message type
isOfType
public boolean isOfType(AuiMessage.Type type)
dismiss
public AuiMessage dismiss()
Copyright © 2002-2013 Atlassian. All Rights Reserved.