Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Commit

Permalink
Bug 610757 - controller.waitForElementNotPresent()
Browse files Browse the repository at this point in the history
  • Loading branch information
harthur committed Jan 14, 2011
1 parent ee33882 commit dd9543e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mozmill/mozmill/extension/resource/modules/controller.js
Expand Up @@ -646,6 +646,14 @@ MozMillController.prototype.waitForElement = function(elem, timeout, interval) {
frame.events.pass({'function':'Controller.waitForElement()'});
}

MozMillController.prototype.waitForElementNotPresent = function(elem, timeout, interval) {
this.waitFor(function() {
return !elem.exists();
}, "Timeout exceeded for waitForElementNotPresent " + elem.getInfo(), timeout, interval);

frame.events.pass({'function':'Controller.waitForElementNotPresent()'});
}

MozMillController.prototype.__defineGetter__("waitForEvents", function() {
if (this._waitForEvents == undefined)
this._waitForEvents = new waitForEvents();
Expand Down

0 comments on commit dd9543e

Please sign in to comment.