Sha256: 5763ac66d7c613eb9ce32a1cc661e3fc4fdf888a1d6322261372adc66dcface8

Contents?: true

Size: 602 Bytes

Versions: 28

Compression:

Stored size: 602 Bytes

Contents

module Pageflow
  module Dom
    module Editor
      class FileImportChooser < Domino
        selector '.dialog_container > .choose_importer'

        def cancel_button
          node.find('button.close')
        end

        def importers_list
          node.find('ul.importers_panel')
        end

        def select_importer(importer_key)
          importers_list.find("li > .importer[data-key='#{importer_key}']").click
        end

        def has_importer?(importer_key)
          importers_list.has_selector?("li > .importer[data-key='#{importer_key}']")
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
pageflow-support-17.0.4 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-17.0.3 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-17.0.2 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-17.0.1 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-17.0.0 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-16.2.0 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-16.1.0 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-16.0.0 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-15.8.0 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-15.7.1 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-15.7.0 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-15.6.1 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-15.6.0 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-15.5.0 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-15.4.0 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-15.3.0 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-15.2.2 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-15.2.1 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-15.2.0 pageflow/dom/editor/file_import_chooser.rb
pageflow-support-15.1.2 pageflow/dom/editor/file_import_chooser.rb