Class: Watir::HTML::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/watir-webdriver/html/generator.rb

Constant Summary collapse

IGNORED_ATTRIBUTES =
%w(cells elements hash rows span text)

Instance Method Summary collapse

Instance Method Details

#generate(spec_url, io = StringIO.new) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/watir-webdriver/html/generator.rb', line 9

def generate(spec_url, io = StringIO.new)
  @spec_url, @io = spec_url, io

  extract_spec
  cleanup_spec

  write_header
  write_class_defs
  write_container_methods
  write_footer

  io
end