class Browser::Base

def phantom_js?(expected_version = nil)

Detect if browser is PhantomJS
def phantom_js?(expected_version = nil)
  instance_of?(PhantomJS) &&
    detect_version?(full_version, expected_version)
end