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


Java TouchScreen类代码示例

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


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

示例1: getTouch

import org.openqa.selenium.interactions.TouchScreen; //导入依赖的package包/类
@Override
public TouchScreen getTouch()
{
    setLastAction();
    if ( webDriver instanceof HasTouchScreen )
        return ((HasTouchScreen) webDriver).getTouch();
    else
        return null;
}
 
开发者ID:xframium,项目名称:xframium-java,代码行数:10,代码来源:DeviceWebDriver.java

示例2: call

import org.openqa.selenium.interactions.TouchScreen; //导入依赖的package包/类
@Override
public Void call() throws Exception {
  TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch();
  WebElement element = getKnownElements().get(elementId);
  Coordinates elementLocation = ((Locatable) element).getCoordinates();

  touchScreen.singleTap(elementLocation);

  return null;
}
 
开发者ID:alexkogon,项目名称:grid-refactor-remote-server,代码行数:11,代码来源:SingleTapOnElement.java

示例3: call

import org.openqa.selenium.interactions.TouchScreen; //导入依赖的package包/类
@Override
public Void call() throws Exception {
  TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch();

  touchScreen.down(x, y);

  return null;
}
 
开发者ID:alexkogon,项目名称:grid-refactor-remote-server,代码行数:9,代码来源:Down.java

示例4: call

import org.openqa.selenium.interactions.TouchScreen; //导入依赖的package包/类
@Override
public Void call() throws Exception {
  TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch();

  if (elementId != null) {
    WebElement element = getKnownElements().get(elementId);
    Coordinates elementLocation = ((Locatable) element).getCoordinates();
    touchScreen.flick(elementLocation, xOffset, yOffset, speed);
  } else {
    touchScreen.flick(xSpeed, ySpeed);
  }

  return null;
}
 
开发者ID:alexkogon,项目名称:grid-refactor-remote-server,代码行数:15,代码来源:Flick.java

示例5: call

import org.openqa.selenium.interactions.TouchScreen; //导入依赖的package包/类
@Override
public Void call() throws Exception {
  TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch();

  touchScreen.up(x, y);

  return null;
}
 
开发者ID:alexkogon,项目名称:grid-refactor-remote-server,代码行数:9,代码来源:Up.java

示例6: call

import org.openqa.selenium.interactions.TouchScreen; //导入依赖的package包/类
@Override
public Void call() throws Exception {
  TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch();
  WebElement element = getKnownElements().get(elementId);
  Coordinates elementLocation = ((Locatable) element).getCoordinates();

  touchScreen.doubleTap(elementLocation);

  return null;
}
 
开发者ID:alexkogon,项目名称:grid-refactor-remote-server,代码行数:11,代码来源:DoubleTapOnElement.java

示例7: call

import org.openqa.selenium.interactions.TouchScreen; //导入依赖的package包/类
@Override
public Void call() throws Exception {
  TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch();
  WebElement element = getKnownElements().get(elementId);
  Coordinates elementLocation = ((Locatable) element).getCoordinates();
  touchScreen.longPress(elementLocation);

  return null;
}
 
开发者ID:alexkogon,项目名称:grid-refactor-remote-server,代码行数:10,代码来源:LongPressOnElement.java

示例8: call

import org.openqa.selenium.interactions.TouchScreen; //导入依赖的package包/类
@Override
public Void call() throws Exception {
  TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch();

  touchScreen.move(x, y);

  return null;
}
 
开发者ID:alexkogon,项目名称:grid-refactor-remote-server,代码行数:9,代码来源:Move.java

示例9: call

import org.openqa.selenium.interactions.TouchScreen; //导入依赖的package包/类
@Override
public Void call() throws Exception {
  TouchScreen touchScreen = ((HasTouchScreen) getDriver()).getTouch();

  if (elementId != null) {
    WebElement element = getKnownElements().get(elementId);
    Coordinates elementLocation = ((Locatable) element).getCoordinates();
    touchScreen.scroll(elementLocation, xOffset, yOffset);
  } else {
    touchScreen.scroll(xOffset, yOffset);
  }
  return null;
}
 
开发者ID:alexkogon,项目名称:grid-refactor-remote-server,代码行数:14,代码来源:Scroll.java

示例10: getTouch

import org.openqa.selenium.interactions.TouchScreen; //导入依赖的package包/类
@Override
public TouchScreen getTouch() {
    return ((HasTouchScreen) driver).getTouch();
}
 
开发者ID:codezombies,项目名称:easytest,代码行数:5,代码来源:DeviceWebDriver.java

示例11: getTouch

import org.openqa.selenium.interactions.TouchScreen; //导入依赖的package包/类
@Override
public TouchScreen getTouch() {
	return this.touchScreen;
}
 
开发者ID:fjalvingh,项目名称:domui,代码行数:5,代码来源:MyChromeDriver.java

示例12: getTouchScreen

import org.openqa.selenium.interactions.TouchScreen; //导入依赖的package包/类
@Override
public TouchScreen getTouchScreen() {
	return new RemoteTouchScreen(getExecuteMethod());
}
 
开发者ID:qmetry,项目名称:qaf,代码行数:5,代码来源:QAFExtendedWebDriver.java

示例13: getTouch

import org.openqa.selenium.interactions.TouchScreen; //导入依赖的package包/类
public TouchScreen getTouch() {
    return touch;
}
 
开发者ID:bitbar,项目名称:testdroid-appium-driver,代码行数:4,代码来源:TestdroidAppiumDriver.java

示例14: getTouch

import org.openqa.selenium.interactions.TouchScreen; //导入依赖的package包/类
public TouchScreen getTouch() {
	return touch;
}
 
开发者ID:sugarcrm,项目名称:candybean,代码行数:4,代码来源:WebDriverInterface.java

示例15: getTouch

import org.openqa.selenium.interactions.TouchScreen; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public TouchScreen getTouch() {
  return touchScreen;
}
 
开发者ID:selendroid,项目名称:selendroid,代码行数:8,代码来源:SelendroidDriver.java


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