Class: Watir::Browser
- Inherits:
-
Object
- Object
- Watir::Browser
- Defined in:
- lib/extensions/watir/browser.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
Instance Method Summary collapse
- #locator_namespace ⇒ Object
- #reset_doc ⇒ Object
-
#text! ⇒ String
Uses Nokogiri to return the text of page body.
Instance Attribute Details
#doc ⇒ Object
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_namespace ⇒ Object
32 33 34 |
# File 'lib/extensions/watir/browser.rb', line 32 def locator_namespace @locator_namespace ||= Watigiri::Locators end |
#reset_doc ⇒ Object
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.
28 29 30 |
# File 'lib/extensions/watir/browser.rb', line 28 def text! body.text! end |