Add webdriver.WebDriver#touchActions

This commit is contained in:
Kuniwak
2015-07-09 21:17:14 +09:00
parent 7c881f2e1a
commit 1bbf7338c1
2 changed files with 17 additions and 0 deletions
@@ -697,6 +697,7 @@ function TestWebDriver() {
var booleanPromise: webdriver.promise.Promise<boolean>;
var actions: webdriver.ActionSequence = driver.actions();
var touchActions: webdriver.TouchSequence = driver.touchActions();
// call
stringPromise = driver.call<string>(function(){});
+16
View File
@@ -3775,6 +3775,22 @@ declare module webdriver {
*/
actions(): ActionSequence;
/**
* Creates a new touch sequence using this driver. The sequence will not be
* scheduled for execution until {@link webdriver.TouchSequence#perform} is
* called. Example:
*
* driver.touchActions().
* tap(element1).
* doubleTap(element2).
* perform();
*
* @return {!webdriver.TouchSequence} A new touch sequence for this instance.
*/
touchActions(): TouchSequence;
/**
* Schedules a command to execute JavaScript in the context of the currently
* selected frame or window. The script fragment will be executed as the body