Module: Vapir::IE::Container

Includes:
Container, Exception
Included in:
PageContainer
Defined in:
lib/vapir-ie/container.rb

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.button(:name, 'b1').click

or

ie.button(: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

Instance Method Summary collapse

Instance Attribute Details

#type_keysObject

Returns the value of attribute type_keys.



31
32
33
# File 'lib/vapir-ie/container.rb', line 31

def type_keys
  @type_keys
end

#typingspeedObject

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