Class: AndroidPhone

Inherits:
Android show all
Defined in:
lib/platform/mobile/android/android_phone/android_phone.rb

Overview

AndroidPhone adds to or modifies the Android platform with Android Phone-specific functionality

Instance Attribute Summary

Attributes inherited from Platform

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

Instance Method Summary collapse

Methods inherited from Android

#android?

Methods inherited from Mobile

#android?, #init?, #ios?, #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) ⇒ AndroidPhone

Public: Initializes an AndroidPhone.



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

def initialize(*args)
  super(*args)
  @screens = AndroidPhoneScreens.new(self)
  @roi = AndroidPhoneRois.new(self)
end

Instance Method Details

#is_phone?Boolean

Public: Checks if the device is a phone.

Returns a Boolean true.

Returns:

  • (Boolean)


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

def is_phone?
  true
end