本文整理汇总了Java中org.robotframework.javalib.annotation.RobotKeywordOverload类的典型用法代码示例。如果您正苦于以下问题:Java RobotKeywordOverload类的具体用法?Java RobotKeywordOverload怎么用?Java RobotKeywordOverload使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RobotKeywordOverload类属于org.robotframework.javalib.annotation包,在下文中一共展示了RobotKeywordOverload类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: click
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public void click(String image, int xOffset, int yOffset) throws Exception{
Match match = wait(image, Double.toString(this.timeout));
Location center = match.getCenter();
try {
int newX = center.getX() + xOffset;
int newY = center.getY() + yOffset;
Location newLocation = new Location(newX, newY);
screen.click(newLocation);
}
catch (FindFailed e) {
capture();
throw new ScreenOperationException("Click "+image+" failed"+e.getMessage(), e);
}
}
开发者ID:rainmanwy,项目名称:robotframework-SikuliLibrary,代码行数:16,代码来源:ScreenKeywords.java
示例2: doubleClick
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public void doubleClick(String image, int xOffset, int yOffset) throws Exception{
Match match = wait(image, Double.toString(this.timeout));
try {
int newX = match.getX() + xOffset;
int newY = match.getY() + yOffset;
Location newLocation = new Location(newX, newY);
screen.doubleClick(newLocation);
}
catch (FindFailed e) {
capture();
throw new ScreenOperationException("Double Click "+image+" failed"+e.getMessage(), e);
}
}
开发者ID:rainmanwy,项目名称:robotframework-SikuliLibrary,代码行数:15,代码来源:ScreenKeywords.java
示例3: mouseMove
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public void mouseMove() throws Exception{
int result = screen.mouseMove();
if (result==0) {
throw new ScreenOperationException("Failed to move mouse to last matched image");
}
}
开发者ID:rainmanwy,项目名称:robotframework-SikuliLibrary,代码行数:8,代码来源:ScreenKeywords.java
示例4: getText
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public String getText(String image) throws Exception {
Match match = find(image);
if (match == null) {
throw new ScreenOperationException("Could not find " + image);
}
Image matchImage = match.getImage();
return matchImage.text();
}
开发者ID:rainmanwy,项目名称:robotframework-SikuliLibrary,代码行数:10,代码来源:ScreenKeywords.java
示例5: setHttpReadTimeout
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
@ArgumentNames({})
public int setHttpReadTimeout() throws Exception {
int originalReadTimeout = HttpConnection.readTimeout;
setHttpReadTimeout(String.valueOf(HttpConnection.connectionTimeout));
return originalReadTimeout;
}
开发者ID:frankbp,项目名称:robotframework-httplibrary,代码行数:9,代码来源:HttpConnection.java
示例6: clickButton
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public void clickButton(String identifier) {
clickButton(identifier, true);
}
开发者ID:dvanherbergen,项目名称:robotframework-formslibrary,代码行数:5,代码来源:ButtonKeywords.java
示例7: verifyButtonIsDisabled
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public boolean verifyButtonIsDisabled(String identifier) {
return verifyButtonIsDisabled(identifier, true);
}
开发者ID:dvanherbergen,项目名称:robotframework-formslibrary,代码行数:5,代码来源:ButtonKeywords.java
示例8: verifyButtonIsEnabled
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public boolean verifyButtonIsEnabled(String identifier) {
return verifyButtonIsEnabled(identifier, true);
}
开发者ID:dvanherbergen,项目名称:robotframework-formslibrary,代码行数:5,代码来源:ButtonKeywords.java
示例9: selectFormsWindow
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public void selectFormsWindow() {
selectFormsWindow(null);
}
开发者ID:dvanherbergen,项目名称:robotframework-formslibrary,代码行数:5,代码来源:DialogKeywords.java
示例10: scrollDown
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public void scrollDown(int count) {
scrollDown(count, 1);
}
开发者ID:dvanherbergen,项目名称:robotframework-formslibrary,代码行数:5,代码来源:ScrollBarKeywords.java
示例11: scrollUp
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public void scrollUp(int count) {
scrollUp(count, 1);
}
开发者ID:dvanherbergen,项目名称:robotframework-formslibrary,代码行数:5,代码来源:ScrollBarKeywords.java
示例12: scrollLeft
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public void scrollLeft(int count) {
scrollLeft(count, 1);
}
开发者ID:dvanherbergen,项目名称:robotframework-formslibrary,代码行数:5,代码来源:ScrollBarKeywords.java
示例13: scrollRight
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public void scrollRight(int count) {
scrollRight(count, 1);
}
开发者ID:dvanherbergen,项目名称:robotframework-formslibrary,代码行数:5,代码来源:ScrollBarKeywords.java
示例14: captureWorkflowView
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public String captureWorkflowView() {
return captureWorkflowView(null);
}
开发者ID:dvanherbergen,项目名称:robotframework-formslibrary,代码行数:5,代码来源:WFProcessKeywords.java
示例15: captureWindow
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public String captureWindow() {
return captureWindow(null);
}
开发者ID:dvanherbergen,项目名称:robotframework-formslibrary,代码行数:5,代码来源:LWWindowKeywords.java
示例16: captureActiveWindow
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public String captureActiveWindow() {
return captureActiveWindow(null);
}
开发者ID:dvanherbergen,项目名称:robotframework-formslibrary,代码行数:5,代码来源:LWWindowKeywords.java
示例17: selectMECOMSValue
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public void selectMECOMSValue(String dateFrom) {
selectMECOMSValue(dateFrom, null);
}
开发者ID:dvanherbergen,项目名称:robotframework-formslibrary,代码行数:5,代码来源:MECOMSValuesKeywords.java
示例18: resetTemplateData
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public void resetTemplateData() {
resetTemplateData(null);
}
开发者ID:dvanherbergen,项目名称:robotframework-filelibrary,代码行数:5,代码来源:ContextKeywords.java
示例19: logTemplateData
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public String logTemplateData() {
return logTemplateData(null);
}
开发者ID:dvanherbergen,项目名称:robotframework-filelibrary,代码行数:5,代码来源:ContextKeywords.java
示例20: mouseUp
import org.robotframework.javalib.annotation.RobotKeywordOverload; //导入依赖的package包/类
@RobotKeywordOverload
public void mouseUp() throws Exception{
screen.mouseUp();
}
开发者ID:rainmanwy,项目名称:robotframework-SikuliLibrary,代码行数:5,代码来源:ScreenKeywords.java
注:本文中的org.robotframework.javalib.annotation.RobotKeywordOverload类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论