|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.test.selenium.waiting.conditions.AlertEquals
public class AlertEquals
Implementation of Condition for waiting if alert is shown and its message has has given value.
If the alert appears but it's message doesn't match expected message, the SeleniumException is thrown.
Implements Condition and JavaScriptCondition used in SeleniumWaiting and AjaxWaiting.
| Constructor Summary | |
|---|---|
protected |
AlertEquals()
Instantiates a new message equals. |
| Method Summary | |
|---|---|
static AlertEquals |
getInstance()
Factory method. |
JavaScript |
getJavaScriptCondition()
Gets JavaScript which define condition what it should be waited for satisfaction. |
boolean |
isTrue()
Returns true if condition is satisfied, false if it isn't. |
AlertEquals |
message(String message)
Returns the AlertEquals instance with text set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AlertEquals()
| Method Detail |
|---|
public boolean isTrue()
SeleniumCondition
isTrue in interface SeleniumConditionpublic JavaScript getJavaScriptCondition()
JavaScriptCondition
getJavaScriptCondition in interface JavaScriptConditionpublic static AlertEquals getInstance()
public AlertEquals message(String message)
Returns the AlertEquals instance with text set.
For equality with this text the condition will wait.
message - it should wait for equality
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||