jwebdriver
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -1367,21 +1367,20 @@ 'use strict'; | ||
self.find(selector, function*(error, elements){ | ||
if(error){ | ||
return endWait(error); | ||
} | ||
else if(removed === true && elements.length === 0){ | ||
// removed | ||
return endWait(null, elements); | ||
} | ||
else if(removed === false && elements.length > 0){ | ||
if(displayed){ | ||
// displayed | ||
var ret = yield elements.displayed(); | ||
if(ret){ | ||
if(elements){ | ||
if(removed === true && elements.length === 0){ | ||
// removed | ||
return endWait(null, elements); | ||
} | ||
else if(removed === false && elements.length > 0){ | ||
if(displayed){ | ||
// displayed | ||
var ret = yield elements.displayed(); | ||
if(ret){ | ||
return endWait(null, elements); | ||
} | ||
} | ||
else{ | ||
// wait dom | ||
return endWait(null, elements); | ||
} | ||
} | ||
else{ | ||
// wait dom | ||
return endWait(null, elements); | ||
} | ||
} | ||
@@ -1388,0 +1387,0 @@ // timeout |
{ | ||
"name": "jwebdriver", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "A webdriver client for node.js", | ||
@@ -5,0 +5,0 @@ "homepage": "http://jwebdriver.com/", |
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
193706
3185