Class: HealthcheckPage

Inherits:
Object
  • Object
show all
Defined in:
lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/healthcheck_page.rb

Overview

Page for describing healthcheck page

Instance Method Summary collapse

Constructor Details

#initialize(instance) ⇒ HealthcheckPage

Returns a new instance of HealthcheckPage.



5
6
7
# File 'lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/healthcheck_page.rb', line 5

def initialize(instance)
  @instance = instance
end

Instance Method Details

#statusString

Returns status of healthcheck on page.

Returns:

  • (String)

    status of healthcheck on page



10
11
12
13
14
# File 'lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/healthcheck_page.rb', line 10

def status
  current_status = @instance.webdriver.get_text('//body')
  OnlyofficeLoggerHelper.log("Current status of healthcheck is: #{current_status}")
  current_status
end