module Capybara::Cuprite::Browser::DOM
def all_text(node)
def all_text(node) evaluate_on(node: node, expr: "this.textContent") end
def attribute(node, name)
def attribute(node, name) evaluate_on(node: node, expr: %Q(_cuprite.getAttribute(this, "#{name}"))) end
def attributes(node)
def attributes(node) value = evaluate_on(node: node, expr: "_cuprite.getAttributes(this)") JSON.parse(value) end
def body
def body evaluate("document.documentElement.outerHTML") end
def current_url
def current_url evaluate_in(@execution_context_id, "location.href") end
def disabled?(node)
def disabled?(node) evaluate_on(node: node, expr: "_cuprite.isDisabled(this)") end
def path(node)
def path(node) evaluate_on(node: node, expr: "_cuprite.path(this)") end
def property(node, name)
def property(node, name) evaluate_on(node: node, expr: %Q(this["#{name}"])) end
def title
def title evaluate_in(@execution_context_id, "document.title") end
def value(node)
def value(node) evaluate_on(node: node, expr: "_cuprite.value(this)") end
def visible?(node)
def visible?(node) evaluate_on(node: node, expr: "_cuprite.isVisible(this)") end