Module: OnlyofficeDocumentserverTestingFramework::UpdateLinksHelper
- Included in:
- Management
- Defined in:
- lib/onlyoffice_documentserver_testing_framework/test_instance_docs/management/update_links_helper.rb
Overview
Helper to handle files with external links
Instance Method Summary collapse
-
#handle_update_links_message(to_update) ⇒ Object
Handle update links dialog.
-
#update_links_message_xpath ⇒ String
Xpath of update links message.
-
#xpath_do_not_update_button ⇒ String
Xpath of don’t update button.
-
#xpath_update_button ⇒ String
Xpath of update button.
Instance Method Details
#handle_update_links_message(to_update) ⇒ Object
Handle update links dialog
22 23 24 25 26 27 28 29 30 |
# File 'lib/onlyoffice_documentserver_testing_framework/test_instance_docs/management/update_links_helper.rb', line 22 def (to_update) return unless selenium_functions(:element_visible?, ) if to_update selenium_functions(:click_on_locator, , true) else selenium_functions(:click_on_locator, , true) end end |
#update_links_message_xpath ⇒ String
Returns xpath of update links message.
7 8 9 |
# File 'lib/onlyoffice_documentserver_testing_framework/test_instance_docs/management/update_links_helper.rb', line 7 def '//span[contains(text(), "This workbook contains links to")]' end |
#xpath_do_not_update_button ⇒ String
Returns xpath of don’t update button.
17 18 19 |
# File 'lib/onlyoffice_documentserver_testing_framework/test_instance_docs/management/update_links_helper.rb', line 17 def "#{}/../../../..//button[@result='cancel']" end |
#xpath_update_button ⇒ String
Returns xpath of update button.
12 13 14 |
# File 'lib/onlyoffice_documentserver_testing_framework/test_instance_docs/management/update_links_helper.rb', line 12 def "#{}/../../../..//button[@result='ok']" end |