org.specrunner.webdriver.assertions
Class PluginNotContains
java.lang.Object
org.specrunner.parameters.core.ParameterHolder
org.specrunner.plugins.core.AbstractPlugin
org.specrunner.plugins.core.AbstractPluginNamed
org.specrunner.plugins.core.AbstractPluginScoped
org.specrunner.plugins.core.AbstractPluginValue
org.specrunner.webdriver.AbstractPluginBrowserAware
org.specrunner.webdriver.AbstractPluginFind
org.specrunner.webdriver.AbstractPluginFindSingle
org.specrunner.webdriver.assertions.PluginContains
org.specrunner.webdriver.assertions.PluginNotContains
- All Implemented Interfaces:
- IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin
public class PluginNotContains
- extends PluginContains
Check if body or a given element does not contains a text.
- Author:
- Thiago Santos
| Methods inherited from class org.specrunner.webdriver.AbstractPluginBrowserAware |
doEnd, getBrowserName, getDir, getDownload, getInterval, getMaxwait, getWaitCondition, getWaitfor, isWaitForClient, setDir, setDownload, setInterval, setMaxwait, setWaitfor, waitForClient |
| Methods inherited from class org.specrunner.plugins.core.AbstractPlugin |
copy, doStart, getCondition, getConditionModel, getNormalized, getNormalized, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, setCondition, setConditionModel, setNormalized, setParent, setSleep, setSleepModel, setThreadsafe, setTimeout, setTimeoutModel, setWait, setWaitModel, toString |
PluginNotContains
public PluginNotContains()
test
protected boolean test(String content,
String value)
- Description copied from class:
PluginContains
- Check if content contains the value.
- Overrides:
test in class PluginContains
- Parameters:
content - The content.value - The value.
- Returns:
- true, if contains, false, otherwise.
getMessage
protected String getMessage(IContext context,
String value)
throws PluginException
- Description copied from class:
PluginContains
- The error message in case o test failure.
- Overrides:
getMessage in class PluginContains
- Parameters:
context - The context.value - The value.
- Returns:
- The message.
- Throws:
PluginException - On message construction errors.
Copyright © 2013. All rights reserved.