本文整理汇总了Java中com.thoughtworks.selenium.CommandProcessor类的典型用法代码示例。如果您正苦于以下问题:Java CommandProcessor类的具体用法?Java CommandProcessor怎么用?Java CommandProcessor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CommandProcessor类属于com.thoughtworks.selenium包,在下文中一共展示了CommandProcessor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: fixtureFor
import com.thoughtworks.selenium.CommandProcessor; //导入依赖的package包/类
/** {@inheritDoc} */
public Fixture fixtureFor(Object target) {
if(!(target instanceof CommandProcessor))
throw new IllegalArgumentException("Can only get a SeleniumFixture for an instance of CommandProcessor.");
return new SeleniumFixture((CommandProcessor)target);
}
示例2: xtestCanRunSeleniumCommands
import com.thoughtworks.selenium.CommandProcessor; //导入依赖的package包/类
public void xtestCanRunSeleniumCommands() throws Throwable {
Fixture fixture = sud.getFixture("selenium", "localhost", "4433",
"*firefox", "http://www.google.com");
CommandProcessor processor = (CommandProcessor) fixture.getTarget();
try {
processor.start();
Message assertTitleMessage = fixture.check("assertTitle");
Object result = assertTitleMessage.send("Google");
assertEquals("OK", result);
} catch (Throwable t) {
if (processor != null)
processor.stop();
}
}
示例3: setUp
import com.thoughtworks.selenium.CommandProcessor; //导入依赖的package包/类
@Override
protected void setUp() throws Exception {
super.setUp();
commandProcessor = context.mock(CommandProcessor.class);
fixture = new SeleniumFixture(commandProcessor);
}
示例4: AbstractSeleniumCommand
import com.thoughtworks.selenium.CommandProcessor; //导入依赖的package包/类
public AbstractSeleniumCommand( StoredVars storedVars, CommandProcessor commandProcessor, String command,
String param1 )
{
this.storedVars = storedVars;
this.commandProcessor = commandProcessor;
this.command = command;
this.param1 = param1;
this.param2 = "";
}
示例5: QAFWebDriverBackedSelenium
import com.thoughtworks.selenium.CommandProcessor; //导入依赖的package包/类
/**
* @param commandProcessor
*/
public QAFWebDriverBackedSelenium(com.thoughtworks.selenium.CommandProcessor commandProcessor) {
super(commandProcessor);
}
示例6: IsSeleniumImpl
import com.thoughtworks.selenium.CommandProcessor; //导入依赖的package包/类
/**
* @param processor
*/
public IsSeleniumImpl(CommandProcessor processor) {
super(processor);
}
示例7: BooleanSeleniumCommand
import com.thoughtworks.selenium.CommandProcessor; //导入依赖的package包/类
public BooleanSeleniumCommand( StoredVars storedVars, CommandProcessor commandProcessor, String command,
String param1 )
{
super( storedVars, commandProcessor, command, param1 );
}
示例8: AssertSelectedStep
import com.thoughtworks.selenium.CommandProcessor; //导入依赖的package包/类
public AssertSelectedStep( StoredVars storedVars, CommandProcessor commandProcessor, String param1, String param2 )
{
super( new StringSeleniumCommand( storedVars, commandProcessor, "getSelectedLabel", param1 ), param2 );
}
示例9: StringSeleniumCommand
import com.thoughtworks.selenium.CommandProcessor; //导入依赖的package包/类
public StringSeleniumCommand( StoredVars storedVars, CommandProcessor commandProcessor, String command,
String param1 )
{
super( storedVars, commandProcessor, command, param1 );
}
示例10: VoidSeleniumCommand
import com.thoughtworks.selenium.CommandProcessor; //导入依赖的package包/类
public VoidSeleniumCommand( StoredVars storedVars, CommandProcessor commandProcessor, String command, String param1 )
{
super( storedVars, commandProcessor, command, param1 );
}
示例11: SimpleStoreStep
import com.thoughtworks.selenium.CommandProcessor; //导入依赖的package包/类
public SimpleStoreStep( StoredVars storedVars, CommandProcessor commandProcessor, String param1, String param2 )
{
super( new VoidSeleniumCommand( storedVars, commandProcessor, "storeExpression", param1, param2 ) );
}
示例12: VerifySelectedStep
import com.thoughtworks.selenium.CommandProcessor; //导入依赖的package包/类
public VerifySelectedStep( StoredVars storedVars, CommandProcessor commandProcessor, String param1, String param2 )
{
super( new StringSeleniumCommand( storedVars, commandProcessor, "getSelectedLabel", param1 ), param2 );
}
示例13: setCommandProcessor
import com.thoughtworks.selenium.CommandProcessor; //导入依赖的package包/类
void setCommandProcessor(CommandProcessor commandProcessor) {
this.commandProcessor = commandProcessor;
}
示例14: startWebDriverCommandProcessor
import com.thoughtworks.selenium.CommandProcessor; //导入依赖的package包/类
private CommandProcessor startWebDriverCommandProcessor(String browserUrl, WebDriver webDriver) {
browserUrl = removeAnchorTag(browserUrl);
return new WebDriverCommandProcessor(browserUrl, webDriver);
}
示例15: setCommandProcessor
import com.thoughtworks.selenium.CommandProcessor; //导入依赖的package包/类
void setCommandProcessor(CommandProcessor commandProcessor) {
this.commandProcessor=commandProcessor;
screenCapture.setCommandProcessor(commandProcessor);
locatorCheck = new LocatorCheck(commandProcessor);
LOG.info("Started new command processor (ramp-up period: " + count + "ms, timeout: " + timeout + "ms, step delay: " + stepDelay + "ms, poll interval: " + pollDelay + "ms)");
}