Top Level Namespace

Defined Under Namespace

Modules: HashExtension, RSpec, Watirmark Classes: Array, Hash, Object, Regexp, String

Instance Method Summary collapse

Instance Method Details

#attach(title) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/watirmark/attach.rb', line 17

def attach(title)
  session = Watirmark::IESession.instance
  session.config.attach = true
  session.attach_title = Regexp.new(title)
  browser = session.openbrowser
  puts "Attached to: #{browser.title}"
end