Module: OnlyofficeDocumentserverTestingFramework::FileReopenHelper

Included in:
DocTestSiteFunctions
Defined in:
lib/onlyoffice_documentserver_testing_framework/test_instance_docs/doc_test_site_functions/file_reopen_helper.rb

Overview

Module for Reopen file related methods

Instance Method Summary collapse

Instance Method Details

#reopen_after_autosave(timeout: 30) ⇒ Boolean

Perform reopen after autosave

Parameters:

  • timeout (Integer) (defaults to: 30)

    for wait for file to build

Returns:

  • (Boolean)

    result of opening



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

def reopen_after_autosave(timeout: 30)
  url = @instance.selenium.current_url
  leave_file_and_build_it(timeout: timeout)
  @instance.webdriver.open(url)
  @instance.management.wait_for_operation_with_round_status_canvas
end