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
-
public abstract class TouchWebDriverTestCase extends DockerWebDriverTestCase
A base class to test using a Touch Simulator to run a remote Docker WebDriver.- Author:
- jumperchen
-
-
Field Summary
Fields Modifier and Type Field Description protected org.openqa.selenium.interactions.PointerInputFINGER-
Fields inherited from class org.zkoss.test.webdriver.DockerWebDriverTestCase
docker, globalLock
-
Fields inherited from class org.zkoss.test.webdriver.WebDriverTestCase
prototypeServer
-
Fields inherited from class org.zkoss.test.webdriver.BaseTestCase
_local, driver, PACKAGE, static_port
-
-
Constructor Summary
Constructors Constructor Description TouchWebDriverTestCase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.openqa.selenium.chrome.ChromeOptionsgetWebDriverOptions()Gets 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, unlockGlobalLock
-
Methods 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
-
-
-
-
Method Detail
-
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)
-
-