lib/capybara/poltergeist/client/node.coffee in poltergeist-0.5.0 vs lib/capybara/poltergeist/client/node.coffee in poltergeist-0.6.0

- old
+ new

@@ -1,9 +1,9 @@ # Proxy object for forwarding method calls to the node object inside the page. class Poltergeist.Node - @DELEGATES = ['text', 'getAttribute', 'value', 'set', 'setAttribute', + @DELEGATES = ['text', 'getAttribute', 'value', 'set', 'setAttribute', 'isObsolete', 'removeAttribute', 'isMultiple', 'select', 'tagName', 'find', 'isVisible', 'position', 'trigger', 'parentId', 'clickTest'] constructor: (@page, @id) -> @@ -57,10 +57,10 @@ test = this.clickTest(pos.x, pos.y) if test.status == 'success' @page.sendEvent('click', pos.x, pos.y) else - throw new Poltergeist.ClickFailed(test.selector, pos) + new Poltergeist.ClickFailed(test.selector, pos) dragTo: (other) -> position = this.clickPosition() otherPosition = other.clickPosition(false)