Class: IosTablet

Inherits:
Ios show all
Defined in:
lib/platform/mobile/ios/ios_tablet/ios_tablet.rb

Overview

IosTablet adds to or modifies the Ios platform with iOS Tablet-specific functionality

Instance Attribute Summary

Attributes inherited from Platform

#id, #keys, #remotes, #roi, #screens

Instance Method Summary collapse

Methods inherited from Ios

#ios?

Methods inherited from Mobile

#android?, #init?, #ios?, #is_phone?, #password, #software_version, #username

Methods included from Appium

#double_click?, #flick?, #home?, #long_press?, #orientation, #orientation=, #power?, #rotate_landscape?, #rotate_portrait?, #rotation, #rotation=, #scroll?, #set_landscape?, #set_portrait?, #start_session?, #swipe?, #tap?

Methods included from Selenium

#back?, #element, #element?, #elements, #elements?, #time_to_element, #time_to_elements, #type?

Methods inherited from Platform

#alt_parental_controls_pin, #app_version, #audio_level, #audio_level_left, #audio_level_right, #audio_present?, #capture_audio, #capture_frames, #capture_screen, #device_type_is?, #device_type_not?, #entitlements, #has_power?, #height, #high_def?, #init?, #ip_address, #is_generic?, #lock, #mac_address, #model, #name, #parental_controls_pin, #password, #platform, #power_cycle, #power_off, #power_on, #power_on?, #press_key, #record_audio, #record_video, #remote_type=, #remote_type_is?, #reset_video, #resolution, #save_last_screen_captured, #slot, #snmp_get, #snmp_set, #software_version, #stop_audio, #stop_video, #upload_screenshot, #username, #width

Constructor Details

#initialize(*args) ⇒ IosTablet

Public: Initializes an IosTablet.



10
11
12
13
14
# File 'lib/platform/mobile/ios/ios_tablet/ios_tablet.rb', line 10

def initialize(*args)
  super(*args)
  @screens = IosTabletScreens.new(self)
  @roi = IosTabletRois.new(self)
end

Instance Method Details

#is_tablet?Boolean

Public: Checks if the device is a tablet.

Returns a Boolean true.

Returns:

  • (Boolean)


19
20
21
# File 'lib/platform/mobile/ios/ios_tablet/ios_tablet.rb', line 19

def is_tablet?
  true
end