com.atlassian.jira.pageobjects.elements
Class AuiMessage

java.lang.Object
  extended by com.atlassian.jira.pageobjects.elements.AuiMessage
Direct Known Subclasses:
GlobalMessage

public class AuiMessage
extends Object

Generic AUI messages, error warning success

Since:
v5.0

Nested Class Summary
static class AuiMessage.Type
           
 
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)
           
 
Method Summary
 AuiMessage dismiss()
           
 com.atlassian.pageobjects.elements.query.TimedQuery<String> getMessage()
          Gets text of message
 AuiMessage.Type getType()
          Type of message - Error, Warning, Success & UNKOWN
 boolean isCloseable()
          Does it have a X that when clicked dismisses message
 boolean isOfType(AuiMessage.Type type)
           
 com.atlassian.pageobjects.elements.query.TimedCondition isPresent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

AuiMessage

public AuiMessage(org.openqa.selenium.By by)

AuiMessage

public AuiMessage(com.atlassian.pageobjects.elements.PageElement message)
Method Detail

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-2014 Atlassian. All Rights Reserved.