Module: Applitools::Calabash::FullPageCaptureAlgorithm

Defined in:
lib/applitools/calabash/full_page_capture_algorithm.rb,
lib/applitools/calabash/full_page_capture_algorithm/base.rb,
lib/applitools/calabash/full_page_capture_algorithm/ios_ui_table_view.rb,
lib/applitools/calabash/full_page_capture_algorithm/android_scroll_view.rb

Defined Under Namespace

Modules: CalabashAndroidScreenshot Classes: AndroidScrollView, Base, IosUITableView

Constant Summary collapse

ANDROID_ALGORITHMS =
{
  'android.widget.ScrollView' => Applitools::Calabash::FullPageCaptureAlgorithm::AndroidScrollView
}.freeze
IOS_ALGORITHMS =
{
  'UITableView' => Applitools::Calabash::FullPageCaptureAlgorithm::IosUITableView
}.freeze

Class Method Summary collapse

Class Method Details

.get_algorithm_class(env, klass) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/applitools/calabash/full_page_capture_algorithm.rb', line 15

def get_algorithm_class(env, klass)
  case env
  when :ios
    IOS_ALGORITHMS[klass]
  when :android
    ANDROID_ALGORITHMS[klass]
  end
end