Package org.zkoss.test.webdriver
Class TouchWebDriverTestCase
java.lang.Object
org.zkoss.test.webdriver.BaseTestCase
org.zkoss.test.webdriver.WebDriverTestCase
org.zkoss.test.webdriver.DockerWebDriverTestCase
org.zkoss.test.webdriver.TouchWebDriverTestCase
A base class to test using a Touch Simulator to run a remote Docker WebDriver.
- Author:
- jumperchen
-
Field Summary
FieldsFields inherited from class org.zkoss.test.webdriver.DockerWebDriverTestCase
docker, globalLockFields inherited from class org.zkoss.test.webdriver.WebDriverTestCase
prototypeServerFields inherited from class org.zkoss.test.webdriver.BaseTestCase
_local, driver, PACKAGE, static_port -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final org.openqa.selenium.chrome.ChromeOptionsGets the WebDriver options.voidscroll(org.openqa.selenium.WebElement target, int startY, int endY) voidscroll(org.openqa.selenium.WebElement target, int startY, int endY, int delta) voidscrollTo(int startX, int startY, int endX, int endY) voidswipe(org.openqa.selenium.Point start, org.openqa.selenium.Point end) voidswipe(org.openqa.selenium.Point start, org.openqa.selenium.Point end, int duration) voidswipe(org.openqa.selenium.WebElement start, org.openqa.selenium.WebElement end) voidswipe(org.openqa.selenium.WebElement start, org.openqa.selenium.WebElement end, int duration) voidtap(org.openqa.selenium.Point point) voidtap(org.openqa.selenium.Point point, int duration) voidtap(org.openqa.selenium.WebElement start) voidtap(org.openqa.selenium.WebElement start, int duration) Methods inherited from class org.zkoss.test.webdriver.DockerWebDriverTestCase
exportResource, getRemoteWebDriverUrl, isUseDocker, unlockGlobalLockMethods inherited from class org.zkoss.test.webdriver.BaseTestCase
assertNoAnyError, assertNoJSError, assertNoZKError, blur, check, click, clickAt, closeZKLog, connect, connect, copy, cut, dblClick, destroyServer, disableConnectionWait, dragdropTo, dropUploadFile, dropUploadFiles, enableConnectionWait, eval, focus, getActions, getActions, getAddress, getBaseResource, getContextPath, getEval, getFileExtension, getFileLocation, getHost, getMessageBoxContent, getPort, getRetryCount, getServerPort, getSpeed, getStatusCode, getTestURL, getTimeout, getWebDriver, getZKLog, hasError, initServer, initWebDriver, isHeadless, isMac, isSolaris, isUnix, isUsingRemoteWebDriver, isUsingRemoteWebDriver, isWindows, isZKLogAvailable, jq, jq, mouseOver, parseInt, paste, rightClick, selectAll, selectComboitem, sendKeys, setCursorPosition, sleep, stop, stripJsessionid, toElement, trigger, trim, type, waitResponse, waitResponse, waitResponse, waitResponse, widget, widget, widget, zk, zk
-
Field Details
-
FINGER
protected org.openqa.selenium.interactions.PointerInput FINGER
-
-
Constructor Details
-
TouchWebDriverTestCase
public TouchWebDriverTestCase()
-
-
Method Details
-
getWebDriverOptions
protected final org.openqa.selenium.chrome.ChromeOptions getWebDriverOptions()Description copied from class:BaseTestCaseGets the WebDriver options. You can add arguments for Chromium to change settings like locale or user-agent string. A list of available options can be found at Capabilities & ChromeOptions.- Overrides:
getWebDriverOptionsin classBaseTestCase- Returns:
- WebDriver options
-
swipe
public void swipe(org.openqa.selenium.Point start, org.openqa.selenium.Point end) -
swipe
public void swipe(org.openqa.selenium.Point start, org.openqa.selenium.Point end, int duration) -
swipe
public void swipe(org.openqa.selenium.WebElement start, org.openqa.selenium.WebElement end) -
swipe
public void swipe(org.openqa.selenium.WebElement start, org.openqa.selenium.WebElement end, int duration) -
tap
public void tap(org.openqa.selenium.Point point) -
tap
public void tap(org.openqa.selenium.Point point, int duration) -
tap
public void tap(org.openqa.selenium.WebElement start, int duration) -
tap
public void tap(org.openqa.selenium.WebElement start) -
scrollTo
public void scrollTo(int startX, int startY, int endX, int endY) -
scroll
public void scroll(org.openqa.selenium.WebElement target, int startY, int endY, int delta) -
scroll
public void scroll(org.openqa.selenium.WebElement target, int startY, int endY)
-