Class: Ios

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

Overview

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

Direct Known Subclasses

IosPhone, IosTablet

Instance Attribute Summary

Attributes inherited from Platform

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

Instance Method Summary collapse

Methods inherited from Mobile

#android?, #init?, #is_phone?, #is_tablet?, #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) ⇒ Ios

Public: Initializes an Ios device.



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

def initialize(*args)
  super(*args)
  @screens = IosScreens.new(self)
  @roi = IosRois.new(self)
end

Instance Method Details

#ios?Boolean

Public: Checks if the device is iOS.

Returns a Boolean true.

Returns:

  • (Boolean)


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

def ios?
  true
end