Class: Watir::Browser

Inherits:
Object
  • Object
show all
Defined in:
lib/extensions/watir/browser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#docObject

Returns the value of attribute doc.



3
4
5
# File 'lib/extensions/watir/browser.rb', line 3

def doc
  @doc
end

Instance Method Details

#locator_namespaceObject



32
33
34
# File 'lib/extensions/watir/browser.rb', line 32

def locator_namespace
  @locator_namespace ||= Watigiri::Locators
end

#reset_docObject



17
18
19
20
# File 'lib/extensions/watir/browser.rb', line 17

def reset_doc
  @doc = nil
  after_hooks.delete(@reset_doc_hook)
end

#text!String

Uses Nokogiri to return the text of page body.

Returns:

  • (String)


28
29
30
# File 'lib/extensions/watir/browser.rb', line 28

def text!
  body.text!
end