@types/selenium-webdriver
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -202,1 +202,34 @@ /** | ||
} | ||
/** | ||
* Handles the execution of WebDriver {@link Command commands}. | ||
* @interface | ||
*/ | ||
export class Executor { | ||
/** | ||
* Defines a new command for use with this executor. When a command is sent, | ||
* the {@code path} will be preprocessed using the command's parameters; any | ||
* path segments prefixed with ':' will be replaced by the parameter of the | ||
* same name. For example, given '/person/:name' and the parameters | ||
* '{name: 'Bob'}', the final command path will be '/person/Bob'. | ||
* | ||
* @param {string} name The command name. | ||
* @param {string} method The HTTP method to use when sending this command. | ||
* @param {string} path The path to send the command to, relative to | ||
* the WebDriver server's command root and of the form | ||
* '/path/:variable/segment'. | ||
*/ | ||
defineCommand(name: string, method: string, path: string): void; | ||
/** | ||
* Executes the given {@code command}. If there is an error executing the | ||
* command, the provided callback will be invoked with the offending error. | ||
* Otherwise, the callback will be invoked with a null Error and non-null | ||
* response object. | ||
* | ||
* @param {!Command} command The command to execute. | ||
* @return {!Promise<?>} A promise that will be fulfilled with | ||
* the command result. | ||
*/ | ||
execute(command: Command): Promise<any>; | ||
} |
@@ -1,2 +0,3 @@ | ||
import { Executor, ILocation, WebDriver, WebElement } from '../'; | ||
import { ILocation, WebDriver, WebElement } from '../'; | ||
import { Executor } from './command'; | ||
@@ -3,0 +4,0 @@ /** |
{ | ||
"name": "@types/selenium-webdriver", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "TypeScript definitions for Selenium WebDriverJS", | ||
@@ -36,2 +36,7 @@ "license": "MIT", | ||
"githubUsername": "oddui" | ||
}, | ||
{ | ||
"name": "Johann Wolf", | ||
"url": "https://github.com/beta-vulgaris", | ||
"githubUsername": "beta-vulgaris" | ||
} | ||
@@ -48,4 +53,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "8f405a034bfe48d62921e30d94eb30ed1573639f81a8b8b023468861905968a9", | ||
"typesPublisherContentHash": "cf25f05ad4e0f4469f87fdc0eca0f123e4cc23e3c264218317b15bb2e11ac678", | ||
"typeScriptVersion": "2.4" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for Selenium WebDriverJS ( https://github.com/SeleniumHQ/selenium ). | ||
This package contains type definitions for Selenium WebDriverJS (https://github.com/SeleniumHQ/selenium). | ||
@@ -12,3 +12,3 @@ # Details | ||
Additional Details | ||
* Last updated: Wed, 03 Apr 2019 01:26:43 GMT | ||
* Last updated: Fri, 28 Jun 2019 17:37:18 GMT | ||
* Dependencies: none | ||
@@ -18,2 +18,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Bill Armstrong <https://github.com/BillArmstrong>, Yuki Kokubun <https://github.com/Kuniwak>, Craig Nishina <https://github.com/cnishina>, Simon Gellis <https://github.com/SupernaviX>, Ben Dixon <https://github.com/bendxn>, Ziyu <https://github.com/oddui>. | ||
These definitions were written by Bill Armstrong <https://github.com/BillArmstrong>, Yuki Kokubun <https://github.com/Kuniwak>, Craig Nishina <https://github.com/cnishina>, Simon Gellis <https://github.com/SupernaviX>, Ben Dixon <https://github.com/bendxn>, Ziyu <https://github.com/oddui>, and Johann Wolf <https://github.com/beta-vulgaris>. |
Sorry, the diff of this file is too big to display
190879
4960