Class: HealthcheckPage
- Inherits:
-
Object
- Object
- HealthcheckPage
- 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
-
#initialize(instance) ⇒ HealthcheckPage
constructor
A new instance of HealthcheckPage.
-
#status ⇒ String
Status of healthcheck on page.
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
#status ⇒ String
Returns 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 |