We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2589ff3 commit e460a6eCopy full SHA for e460a6e
lib/protractor.js
@@ -748,6 +748,17 @@ var buildElementHelper = function(ptor) {
748
}
749
};
750
751
+ /**
752
+ * Webdriver rely on this function to be present on Promises, so adding
753
+ * this dummy function as we inherited from webdriver.promise.Promise, but
754
+ * this function is irrelevant to our usage
755
+ *
756
+ * @return {boolean} Always false as ElementFinder is never in pending state.
757
+ */
758
+ ElementFinder.prototype.isPending = function() {
759
+ return false;
760
+ };
761
+
762
var element = function(locator) {
763
return new ElementFinder(locator);
764
0 commit comments