Module: Vapir::IE::Container
Overview
This module contains the factory methods that are used to access most html objects
For example, to access a button on a web page that has the following html
<input type = button name= 'b1' value='Click Me' onClick='javascript:doSomething()'>
the following watir code could be used
ie.(:name, 'b1').click
or
ie.(:value, 'Click Me').to_s
there are many methods available to the Button object
Is includable for classes that have @container, document and ole_inner_elements
Instance Attribute Summary collapse
-
#type_keys ⇒ Object
Returns the value of attribute type_keys.
-
#typingspeed ⇒ Object
This is used to change the typing speed when entering text on a page.
Instance Method Summary collapse
-
#log(what) ⇒ Object
Write the specified string to the log.
- #set_container(container) ⇒ Object
Instance Attribute Details
#type_keys ⇒ Object
Returns the value of attribute type_keys.
31 32 33 |
# File 'lib/vapir-ie/container.rb', line 31 def type_keys @type_keys end |
#typingspeed ⇒ Object
This is used to change the typing speed when entering text on a page.
30 31 32 |
# File 'lib/vapir-ie/container.rb', line 30 def typingspeed @typingspeed end |
Instance Method Details
#log(what) ⇒ Object
Write the specified string to the log.
40 41 42 |
# File 'lib/vapir-ie/container.rb', line 40 def log(what) @container.logger.debug(what) if @logger end |
#set_container(container) ⇒ Object
44 45 46 47 |
# File 'lib/vapir-ie/container.rb', line 44 def set_container container @container = container @page_container = container.page_container end |