Comment out definitnions and tests for webdriver.By.Hash

This commit is contained in:
Kuniwak
2015-07-09 20:57:53 +09:00
parent 03d49ee1b9
commit 08b91e601c
2 changed files with 42 additions and 42 deletions
@@ -528,15 +528,15 @@ function TestLocator() {
locator = webdriver.By.tagName('tag');
locator = webdriver.By.xpath('xpath');
var locatorHash: webdriver.By.Hash;
locatorHash = { className: 'class' };
locatorHash = { css: 'css' };
locatorHash = { id: 'id' };
locatorHash = { linkText: 'link' };
locatorHash = { name: 'name' };
locatorHash = { partialLinkText: 'text' };
locatorHash = { tagName: 'tag' };
locatorHash = { xpath: 'xpath' };
// var locatorHash: webdriver.By.Hash;
// locatorHash = { className: 'class' };
// locatorHash = { css: 'css' };
// locatorHash = { id: 'id' };
// locatorHash = { linkText: 'link' };
// locatorHash = { name: 'name' };
// locatorHash = { partialLinkText: 'text' };
// locatorHash = { tagName: 'tag' };
// locatorHash = { xpath: 'xpath' };
webdriver.By.js('script', 1, 2, 3)(driver).then(function (abc: number) { });
}
+33 -33
View File
@@ -4783,39 +4783,39 @@ declare module webdriver {
var By: ILocatorStrategy;
module By {
/**
* Short-hand expressions for the primary element locator strategies.
* For example the following two statements are equivalent:
*
* var e1 = driver.findElement(webdriver.By.id('foo'));
* var e2 = driver.findElement({id: 'foo'});
*
* Care should be taken when using JavaScript minifiers (such as the
* Closure compiler), as locator hashes will always be parsed using
* the un-obfuscated properties listed.
*
* @typedef {(
* {className: string}|
* {css: string}|
* {id: string}|
* {js: string}|
* {linkText: string}|
* {name: string}|
* {partialLinkText: string}|
* {tagName: string}|
* {xpath: string})}
*/
type Hash = {className: string}|
{css: string}|
{id: string}|
{js: string}|
{linkText: string}|
{name: string}|
{partialLinkText: string}|
{tagName: string}|
{xpath: string};
}
// module By {
// /**
// * Short-hand expressions for the primary element locator strategies.
// * For example the following two statements are equivalent:
// *
// * var e1 = driver.findElement(webdriver.By.id('foo'));
// * var e2 = driver.findElement({id: 'foo'});
// *
// * Care should be taken when using JavaScript minifiers (such as the
// * Closure compiler), as locator hashes will always be parsed using
// * the un-obfuscated properties listed.
// *
// * @typedef {(
// * {className: string}|
// * {css: string}|
// * {id: string}|
// * {js: string}|
// * {linkText: string}|
// * {name: string}|
// * {partialLinkText: string}|
// * {tagName: string}|
// * {xpath: string})}
// */
// type Hash = {className: string}|
// {css: string}|
// {id: string}|
// {js: string}|
// {linkText: string}|
// {name: string}|
// {partialLinkText: string}|
// {tagName: string}|
// {xpath: string};
// }
/**
* An element locator.