class Hercules::Maestro::Browser
Attributes
browser[R]
parser[R]
s_expr[R]
Public Class Methods
new(url, browser_name = "firefox", is_headless = false)
click to toggle source
# File lib/uptime_monitor/maestro_broswer.rb, line 7 def initialize(url, browser_name = "firefox", is_headless = false) @parser = Hercules::UptimeMonitor::MaestroLangParser.new @browser = Hercules::UptimeMonitor::Browser.new(url, browser_name, is_headless) end
Public Instance Methods
close()
click to toggle source
# File lib/uptime_monitor/maestro_broswer.rb, line 15 def close @browser.close end
exists?(script)
click to toggle source
# File lib/uptime_monitor/maestro_broswer.rb, line 11 def exists?(script) @s_expr = @parser.parse(script).first @browser.exists? @s_expr end