Class: Watobo::Gui::BrowserControl

Inherits:
Object
  • Object
show all
Defined in:
lib/watobo/gui/browser_preview.rb

Direct Known Subclasses

IEControl, SeleniumRC

Instance Method Summary collapse

Constructor Details

#initializeBrowserControl

Returns a new instance of BrowserControl.



10
11
12
# File 'lib/watobo/gui/browser_preview.rb', line 10

def initialize()

end

Instance Method Details

#busy?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/watobo/gui/browser_preview.rb', line 27

def busy?()
  # wait until loading url has finished
end

#closeObject



35
36
37
# File 'lib/watobo/gui/browser_preview.rb', line 35

def close()

end

#connectObject



18
19
20
21
# File 'lib/watobo/gui/browser_preview.rb', line 18

def connect()
  # check if browser is controlable. If not, create new instance.
  raise "Connect-Method not defined"
end

#getDocObject



31
32
33
# File 'lib/watobo/gui/browser_preview.rb', line 31

def getDoc()
  raise "GetDocument-Method not defined"
end


14
15
16
# File 'lib/watobo/gui/browser_preview.rb', line 14

def navigate(url)
  raise "Navigate-Method not defined"
end

#ready?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/watobo/gui/browser_preview.rb', line 23

def ready?()
  # running? can be controlled?
end

#visible=(status) ⇒ Object



39
40
41
# File 'lib/watobo/gui/browser_preview.rb', line 39

def visible=(status)

end

#watobo_enabled?Boolean

Returns:

  • (Boolean)


43
44
45
46
# File 'lib/watobo/gui/browser_preview.rb', line 43

def watobo_enabled?()
  # check if necessary plugins, etc. are installed
  # e.g. jssh for Firefox
end