mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Remove ILocatorStrategy
This commit is contained in:
@@ -551,6 +551,9 @@ function TestLocator() {
|
||||
locator = webdriver.By.tagName('tag');
|
||||
locator = webdriver.By.xpath('xpath');
|
||||
|
||||
// Can import "By" without import declarations
|
||||
var By = webdriver.By;
|
||||
|
||||
var locatorHash: webdriver.By.Hash;
|
||||
locatorHash = { className: 'class' };
|
||||
locatorHash = { css: 'css' };
|
||||
|
||||
-14
@@ -5024,20 +5024,6 @@ declare module webdriver {
|
||||
{xpath: string};
|
||||
}
|
||||
|
||||
// For angular-protractor/angular-protractor-tests.ts
|
||||
interface ILocatorStrategy {
|
||||
className(value: string): Locator;
|
||||
css(value: string): Locator;
|
||||
id(value: string): Locator;
|
||||
linkText(value: string): Locator;
|
||||
js(script: any, ...var_args: any[]): (WebDriver: webdriver.WebDriver) => webdriver.promise.Promise<any>;
|
||||
name(value: string): Locator;
|
||||
partialLinkText(value: string): Locator;
|
||||
tagName(value: string): Locator;
|
||||
xpath(value: string): Locator;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* An element locator.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user