protractor
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -20,3 +20,3 @@ { | ||
"main" : "protractor.js", | ||
"version" : "0.2.0" | ||
"version" : "0.2.1" | ||
} |
@@ -20,3 +20,3 @@ var util = require('util'); | ||
* | ||
* arguments none | ||
* arguments none. | ||
*/ | ||
@@ -31,6 +31,6 @@ clientSideScripts.waitForAngular = function() { | ||
* Find an element in the page by their angular binding. | ||
* | ||
* arguments[0] {string} The binding, e.g. {{cat.name}} | ||
* | ||
* @return {WebElement} The element containing the binding | ||
* arguments[0] {string} The binding, e.g. {{cat.name}}. | ||
* | ||
* @return {WebElement} The element containing the binding. | ||
*/ | ||
@@ -54,5 +54,5 @@ clientSideScripts.findBinding = function() { | ||
* | ||
* arguments[0] {string} The binding, e.g. {{cat.name}} | ||
* arguments[0] {string} The binding, e.g. {{cat.name}}. | ||
* | ||
* @return {Array.<WebElement>} The elements containing the binding | ||
* @return {Array.<WebElement>} The elements containing the binding. | ||
*/ | ||
@@ -76,6 +76,6 @@ clientSideScripts.findBindings = function() { | ||
* | ||
* arguments[0] {string} The text of the repeater, e.g. 'cat in cats' | ||
* arguments[1] {number} The row index | ||
* arguments[0] {string} The text of the repeater, e.g. 'cat in cats'. | ||
* arguments[1] {number} The row index. | ||
* | ||
* @return {Element} The row element | ||
* @return {Element} The row element. | ||
*/ | ||
@@ -104,7 +104,7 @@ clientSideScripts.findRepeaterRow = function() { | ||
* | ||
* arguments[0] {string} The text of the repeater, e.g. 'cat in cats' | ||
* arguments[1] {number} The row index | ||
* arguments[2] {string} The column binding, e.g. '{{cat.name}}' | ||
* arguments[0] {string} The text of the repeater, e.g. 'cat in cats'. | ||
* arguments[1] {number} The row index. | ||
* arguments[2] {string} The column binding, e.g. '{{cat.name}}'. | ||
* | ||
* @return {Element} The element | ||
* @return {Element} The element. | ||
*/ | ||
@@ -152,6 +152,6 @@ clientSideScripts.findRepeaterElement = function() { | ||
* | ||
* arguments[0] {string} The text of the repeater, e.g. 'cat in cats' | ||
* arguments[1] {string} The column binding, e.g. '{{cat.name}}' | ||
* arguments[0] {string} The text of the repeater, e.g. 'cat in cats'. | ||
* arguments[1] {string} The column binding, e.g. '{{cat.name}}'. | ||
* | ||
* @return {Array.<Element>} The elements in the column | ||
* @return {Array.<Element>} The elements in the column. | ||
*/ | ||
@@ -198,3 +198,3 @@ clientSideScripts.findRepeaterColumn = function() { | ||
* | ||
* arguments[0] {string} The model name | ||
* arguments[0] {string} The model name. | ||
* | ||
@@ -207,3 +207,3 @@ * @return {Element} The first matching input element. | ||
for (var p = 0; p < prefixes.length; ++p) { | ||
var selector = 'input[' + prefixes[p] + 'model=' + model + ']'; | ||
var selector = 'input[' + prefixes[p] + 'model="' + model + '"]'; | ||
var inputs = document.querySelectorAll(selector); | ||
@@ -219,3 +219,3 @@ if (inputs.length) { | ||
* | ||
* arguments[0] {string} The model name | ||
* arguments[0] {string} The model name. | ||
* | ||
@@ -228,3 +228,3 @@ * @return {Element} The first matching select element. | ||
for (var p = 0; p < prefixes.length; ++p) { | ||
var selector = 'select[' + prefixes[p] + 'model=' + model + ']'; | ||
var selector = 'select[' + prefixes[p] + 'model="' + model + '"]'; | ||
var inputs = document.querySelectorAll(selector); | ||
@@ -240,3 +240,3 @@ if (inputs.length) { | ||
* | ||
* arguments[0] {string} The model name | ||
* arguments[0] {string} The model name. | ||
* | ||
@@ -250,3 +250,3 @@ * @return {Element} The first matching input element. | ||
var selector = | ||
'select[' + prefixes[p] + 'model=' + model + '] option:checked'; | ||
'select[' + prefixes[p] + 'model="' + model + '"] option:checked'; | ||
var inputs = document.querySelectorAll(selector); | ||
@@ -263,5 +263,3 @@ if (inputs.length) { | ||
* | ||
* arguments none | ||
* | ||
* @return {boolean} true if angular was found. | ||
* arguments none. | ||
*/ | ||
@@ -274,7 +272,7 @@ clientSideScripts.testForAngular = function() { | ||
} else if (n < 1) { | ||
callback(false) | ||
callback(false); | ||
} else { | ||
window.setTimeout(function() {retry(n - 1)}, 1000); | ||
} | ||
} | ||
}; | ||
if (window.angular && window.angular.resumeBootstrap) { | ||
@@ -285,3 +283,3 @@ callback(true); | ||
} | ||
} | ||
}; | ||
@@ -368,3 +366,3 @@ | ||
this.driver.get('about:blank'); | ||
this.driver.executeScript('window.name += "' + DEFER_LABEL + '";' + | ||
this.driver.executeScript('window.name += "' + DEFER_LABEL + '";' + | ||
'window.location.href = "' + destination + '"'); | ||
@@ -376,3 +374,3 @@ | ||
if (!hasAngular) { | ||
throw new Error("Angular could not be found on the page " + | ||
throw new Error('Angular could not be found on the page ' + | ||
destination); | ||
@@ -409,3 +407,3 @@ } | ||
*/ | ||
var ProtractorBy = function() {} | ||
var ProtractorBy = function() {}; | ||
var WebdriverBy = function() {}; | ||
@@ -424,3 +422,3 @@ | ||
* var status = ptor.findElement(protractor.By.binding('{{status}}')); | ||
* | ||
* | ||
* Note: This ignores parent element restrictions if called with | ||
@@ -442,3 +440,3 @@ * WebElement.findElement. | ||
}; | ||
/** | ||
@@ -520,3 +518,3 @@ * Usage: | ||
} | ||
} | ||
}; | ||
} | ||
@@ -523,0 +521,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
18233
465