当前位置: 首页>>代码示例>>Java>>正文


Java SeleniumException类代码示例

本文整理汇总了Java中com.thoughtworks.selenium.SeleniumException的典型用法代码示例。如果您正苦于以下问题:Java SeleniumException类的具体用法?Java SeleniumException怎么用?Java SeleniumException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SeleniumException类属于com.thoughtworks.selenium包,在下文中一共展示了SeleniumException类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: doCommand

import com.thoughtworks.selenium.SeleniumException; //导入依赖的package包/类
@Override
public String doCommand(String commandName, String[] args) {

	SeleniumCommandTracker commandTracker = new SeleniumCommandTracker(commandName, args);
	invokeBeforeCommand(commandTracker);

	if (null == commandTracker.getResult()) {
		String res = null;
		try {
			if (QAFCustomCommands.containsKey(commandName)) {
				QAFCustomCommand cmd = QAFCustomCommands.get(commandName);
				res = cmd.doCommand(this, commandTracker.getArgs());
			} else {
				res = super.doCommand(commandName, commandTracker.getArgs());
			}
			commandTracker.setResult(res);
		} catch (SeleniumException e) {
			System.out.println("Error caught in doCommand!....." + commandName);
			commandTracker.setException(e);
		}
	}
	invokeAfterCommand(commandTracker);
	if (commandTracker.hasException()) {
		throw commandTracker.getException();
	}
	return commandTracker.getResult();
}
 
开发者ID:qmetry,项目名称:qaf,代码行数:28,代码来源:SeleniumCommandProcessor.java

示例2: getFlexDataGridFieldValueForGridRow

import com.thoughtworks.selenium.SeleniumException; //导入依赖的package包/类
public String getFlexDataGridFieldValueForGridRow(String target) throws SeleniumException {
	return executeCommand("getFlexDataGridFieldValueForGridRow", target, "").replace("OK,", "");
}
 
开发者ID:qmetry,项目名称:qaf,代码行数:4,代码来源:IsSeleniumImpl.java

示例3: flexSetDataGridCell

import com.thoughtworks.selenium.SeleniumException; //导入依赖的package包/类
public void flexSetDataGridCell(String target, String args) throws SeleniumException {
	executeCommand("flexSetDataGridCell", target, args);
}
 
开发者ID:qmetry,项目名称:qaf,代码行数:4,代码来源:IsSeleniumImpl.java

示例4: flexSelectIndex

import com.thoughtworks.selenium.SeleniumException; //导入依赖的package包/类
public void flexSelectIndex(String target, String args) throws SeleniumException {
	executeCommand("flexSelectIndex", target, args);
}
 
开发者ID:qmetry,项目名称:qaf,代码行数:4,代码来源:IsSeleniumImpl.java

示例5: flexClickMenuBarUIComponent

import com.thoughtworks.selenium.SeleniumException; //导入依赖的package包/类
public void flexClickMenuBarUIComponent(String target) throws SeleniumException {
	executeCommand("flexClickMenuBarUIComponent", target, "");
}
 
开发者ID:qmetry,项目名称:qaf,代码行数:4,代码来源:IsSeleniumImpl.java

示例6: flexSelect

import com.thoughtworks.selenium.SeleniumException; //导入依赖的package包/类
public void flexSelect(String target) throws SeleniumException {
	executeCommand("flexSelect", target, "");
}
 
开发者ID:qmetry,项目名称:qaf,代码行数:4,代码来源:IsSeleniumImpl.java

示例7: getFlexDataGridCell

import com.thoughtworks.selenium.SeleniumException; //导入依赖的package包/类
public String getFlexDataGridCell(String target) throws SeleniumException {
	return executeCommand("getFlexDataGridCell", target, "").replace("OK,", "");
}
 
开发者ID:qmetry,项目名称:qaf,代码行数:4,代码来源:IsSeleniumImpl.java

示例8: flexRefreshIDToolTips

import com.thoughtworks.selenium.SeleniumException; //导入依赖的package包/类
public void flexRefreshIDToolTips(String target) throws SeleniumException {
	executeCommand("flexRefreshIDToolTips", target, "");
}
 
开发者ID:qmetry,项目名称:qaf,代码行数:4,代码来源:IsSeleniumImpl.java

示例9: doRefreshIDToolTips

import com.thoughtworks.selenium.SeleniumException; //导入依赖的package包/类
public void doRefreshIDToolTips(String target) throws SeleniumException {
	executeCommand("doRefreshIDToolTips", target, "");
}
 
开发者ID:qmetry,项目名称:qaf,代码行数:4,代码来源:IsSeleniumImpl.java

示例10: getFlexDataGridRowCount

import com.thoughtworks.selenium.SeleniumException; //导入依赖的package包/类
public String getFlexDataGridRowCount(String target) throws SeleniumException {
	return executeCommand("getFlexDataGridRowCount", target, "").replace("OK,", "");
}
 
开发者ID:qmetry,项目名称:qaf,代码行数:4,代码来源:IsSeleniumImpl.java

示例11: getFlexCheckBoxChecked

import com.thoughtworks.selenium.SeleniumException; //导入依赖的package包/类
public String getFlexCheckBoxChecked(String target) throws SeleniumException {
	return executeCommand("getFlexCheckBoxChecked", target, "").replace("OK,", "");
}
 
开发者ID:qmetry,项目名称:qaf,代码行数:4,代码来源:IsSeleniumImpl.java

示例12: flexMouseUp

import com.thoughtworks.selenium.SeleniumException; //导入依赖的package包/类
public void flexMouseUp(String target, String args) throws SeleniumException {
	executeCommand("flexMouseUp", target, args);
}
 
开发者ID:qmetry,项目名称:qaf,代码行数:4,代码来源:IsSeleniumImpl.java

示例13: getFlexSelectedItemAtIndex

import com.thoughtworks.selenium.SeleniumException; //导入依赖的package包/类
public String getFlexSelectedItemAtIndex(String target, String args) throws SeleniumException {
	return executeCommand("getFlexSelectedItemAtIndex", target, args).replace("OK,", "");
}
 
开发者ID:qmetry,项目名称:qaf,代码行数:4,代码来源:IsSeleniumImpl.java

示例14: flexMouseDown

import com.thoughtworks.selenium.SeleniumException; //导入依赖的package包/类
public void flexMouseDown(String target, String args) throws SeleniumException {
	executeCommand("flexMouseDown", target, args);
}
 
开发者ID:qmetry,项目名称:qaf,代码行数:4,代码来源:IsSeleniumImpl.java

示例15: flexMouseRollOver

import com.thoughtworks.selenium.SeleniumException; //导入依赖的package包/类
public void flexMouseRollOver(String target, String args) throws SeleniumException {
	executeCommand("flexMouseRollOver", target, args);
}
 
开发者ID:qmetry,项目名称:qaf,代码行数:4,代码来源:IsSeleniumImpl.java


注:本文中的com.thoughtworks.selenium.SeleniumException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。