mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-07 16:30:12 +08:00
Remove ILocatorStrategy
This commit is contained in:
+15
-1
@@ -1228,7 +1228,21 @@ declare module protractor {
|
||||
row(index: number): LocatorWithColumn;
|
||||
}
|
||||
|
||||
interface IProtractorLocatorStrategy extends webdriver.ILocatorStrategy {
|
||||
interface IProtractorLocatorStrategy {
|
||||
/**
|
||||
* webdriver's By is an enum of locator functions, so we must set it to
|
||||
* a prototype before inheriting from it.
|
||||
*/
|
||||
className: typeof webdriver.By.className;
|
||||
css: typeof webdriver.By.css;
|
||||
id: typeof webdriver.By.id;
|
||||
linkText: typeof webdriver.By.linkText;
|
||||
js: typeof webdriver.By.js;
|
||||
name: typeof webdriver.By.name;
|
||||
partialLinkText: typeof webdriver.By.partialLinkText;
|
||||
tagName: typeof webdriver.By.tagName;
|
||||
xpath: typeof webdriver.By.xpath;
|
||||
|
||||
/**
|
||||
* Add a locator to this instance of ProtractorBy. This locator can then be
|
||||
* used with element(by.locatorName(args)).
|
||||
|
||||
Reference in New Issue
Block a user