public class AlertEquals extends Object implements SeleniumCondition, JavaScriptCondition
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.
| Modifier | Constructor and Description |
|---|---|
protected |
AlertEquals()
Instantiates a new message equals.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public boolean isTrue()
SeleniumConditionisTrue in interface SeleniumConditionpublic JavaScript getJavaScriptCondition()
JavaScriptConditiongetJavaScriptCondition 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 equalityCopyright © 2013 JBoss by Red Hat. All Rights Reserved.