Module: Devices

Extended by:
Devices
Includes:
DeviceNameGenerated
Included in:
Devices
Defined in:
lib/applitools/selenium/devices.rb

Constant Summary

Constants included from DeviceNameGenerated

DeviceNameGenerated::BlackBerry_Z30, DeviceNameGenerated::Blackberry_PlayBook, DeviceNameGenerated::Galaxy_A5, DeviceNameGenerated::Galaxy_Note_10, DeviceNameGenerated::Galaxy_Note_10_Plus, DeviceNameGenerated::Galaxy_Note_2, DeviceNameGenerated::Galaxy_Note_3, DeviceNameGenerated::Galaxy_Note_4, DeviceNameGenerated::Galaxy_Note_8, DeviceNameGenerated::Galaxy_Note_9, DeviceNameGenerated::Galaxy_Note_II, DeviceNameGenerated::Galaxy_S10, DeviceNameGenerated::Galaxy_S10_Plus, DeviceNameGenerated::Galaxy_S20, DeviceNameGenerated::Galaxy_S21, DeviceNameGenerated::Galaxy_S21_Ultra, DeviceNameGenerated::Galaxy_S22, DeviceNameGenerated::Galaxy_S22_Ultra, DeviceNameGenerated::Galaxy_S3, DeviceNameGenerated::Galaxy_S5, DeviceNameGenerated::Galaxy_S8, DeviceNameGenerated::Galaxy_S8_Plus, DeviceNameGenerated::Galaxy_S9, DeviceNameGenerated::Galaxy_S9_Plus, DeviceNameGenerated::Galaxy_S_III, DeviceNameGenerated::Galaxy_Tab_S7, DeviceNameGenerated::Huawei_Mate_50_Pro, DeviceNameGenerated::Huawei_Matepad_11, DeviceNameGenerated::IPad, DeviceNameGenerated::IPad_6th_Gen, DeviceNameGenerated::IPad_7th_Gen, DeviceNameGenerated::IPad_Air_2, DeviceNameGenerated::IPad_Mini, DeviceNameGenerated::IPad_Pro, DeviceNameGenerated::IPhone_11, DeviceNameGenerated::IPhone_11_Pro, DeviceNameGenerated::IPhone_11_Pro_Max, DeviceNameGenerated::IPhone_4, DeviceNameGenerated::IPhone_5SE, DeviceNameGenerated::IPhone_5S_E, DeviceNameGenerated::IPhone_6_7_8, DeviceNameGenerated::IPhone_6_7_8_Plus, DeviceNameGenerated::IPhone_X, DeviceNameGenerated::IPhone_XR, DeviceNameGenerated::IPhone_XS, DeviceNameGenerated::IPhone_XS_Max, DeviceNameGenerated::Kindle_Fire_HDX, DeviceNameGenerated::LG_G6, DeviceNameGenerated::LG_Optimus_L70, DeviceNameGenerated::Laptop_with_HiDPI_screen, DeviceNameGenerated::Laptop_with_MDPI_screen, DeviceNameGenerated::Laptop_with_touch, DeviceNameGenerated::Microsoft_Lumia_550, DeviceNameGenerated::Microsoft_Lumia_950, DeviceNameGenerated::Nexus_10, DeviceNameGenerated::Nexus_4, DeviceNameGenerated::Nexus_5, DeviceNameGenerated::Nexus_5X, DeviceNameGenerated::Nexus_6, DeviceNameGenerated::Nexus_6P, DeviceNameGenerated::Nexus_7, DeviceNameGenerated::Nokia_Lumia_520, DeviceNameGenerated::Nokia_N9, DeviceNameGenerated::OnePlus_7T, DeviceNameGenerated::OnePlus_7T_Pro, DeviceNameGenerated::Pixel_2, DeviceNameGenerated::Pixel_2_XL, DeviceNameGenerated::Pixel_3, DeviceNameGenerated::Pixel_3_XL, DeviceNameGenerated::Pixel_4, DeviceNameGenerated::Pixel_4_XL, DeviceNameGenerated::Pixel_5, DeviceNameGenerated::Samsung_Galaxy_A5, DeviceNameGenerated::Samsung_Galaxy_S8, DeviceNameGenerated::Sony_Xperia_10_II

Instance Method Summary collapse

Methods included from DeviceNameGenerated

#enum_values

Instance Method Details

#const_missing(name) ⇒ Object

looks like this was added here by mistake by trello.com/c/SZAPDKSI so as it not work, then can be ignored def unsupported_devices_from_android12

{
  XiaomiRedmiNote11: 'Xiaomi Redmi Note 11'.freeze,
  XiaomiRedmiNote11Pro: 'Xiaomi Redmi Note 11 Pro'.freeze,
  Pixel6: 'Pixel 6'.freeze,
  GalaxyS22Plus: 'Galaxy S22 Plus'.freeze,
  GalaxyTabS8: 'Galaxy Tab S8'.freeze
}

end



100
101
102
103
104
105
106
107
108
# File 'lib/applitools/selenium/devices.rb', line 100

def const_missing(name)
  if pascal_device_name.include?(name)
    # deprecate_constant :... not allow to point to new version (
    puts "Warning: constant Devices::#{name} is deprecated use #{pascal_device_name[name]} instead."
    const_get(pascal_device_name[name])
  else
    super
  end
end

#pascal_device_nameObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/applitools/selenium/devices.rb', line 8

def pascal_device_name
  {
    BlackberryPlayBook: 'Devices::Blackberry_PlayBook'.freeze,
    BlackBerryZ30: 'Devices::BlackBerry_Z30'.freeze,
    GalaxyA5: 'Devices::Galaxy_A5'.freeze,
    GalaxyNote10: 'Devices::Galaxy_Note_10'.freeze,
    GalaxyNote10Plus: 'Devices::Galaxy_Note_10_Plus'.freeze,
    GalaxyNote2: 'Devices::Galaxy_Note_2'.freeze,
    GalaxyNote3: 'Devices::Galaxy_Note_3'.freeze,
    GalaxyNote4: 'Devices::Galaxy_Note_4'.freeze,

    GalaxyNote9: 'Devices::Galaxy_Note_9'.freeze,
    GalaxyS3: 'Devices::Galaxy_S3'.freeze,
    GalaxyS5: 'Devices::Galaxy_S5'.freeze,

    GalaxyS9: 'Devices::Galaxy_S9'.freeze,
    GalaxyS9Plus: 'Devices::Galaxy_S9_Plus'.freeze,
    GalaxyS10: 'Devices::Galaxy_S10'.freeze,
    GalaxyS10Plus: 'Devices::Galaxy_S10_Plus'.freeze,
    GalaxyS20: 'Devices::Galaxy_S20'.freeze,
    # IPad: 'Devices::IPad'.freeze,
    IPad6thGen: 'Devices::IPad_6th_Gen'.freeze,
    IPad7thGen: 'Devices::IPad_7th_Gen'.freeze,
    IPadAir2: 'Devices::IPad_Air_2'.freeze,
    IPadMini: 'Devices::IPad_Mini'.freeze,
    IPadPro: 'Devices::IPad_Pro'.freeze,
    IPhone11: 'Devices::IPhone_11'.freeze,
    IPhone11Pro: 'Devices::IPhone_11_Pro'.freeze,
    IPhone11ProMax: 'Devices::IPhone_11_Pro_Max'.freeze,
    IPhone4: 'Devices::IPhone_4'.freeze,
    IPhone5SE: 'Devices::IPhone_5SE'.freeze,
    IPhone678: 'Devices::IPhone_6_7_8'.freeze,
    IPhone678Plus: 'Devices::IPhone_6_7_8_Plus'.freeze,
    IPhoneX: 'Devices::IPhone_X'.freeze,
    IPhoneXR: 'Devices::IPhone_XR'.freeze,
    IPhoneXS: 'Devices::IPhone_XS'.freeze,
    IPhoneXSMax: 'Devices::IPhone_XS_Max'.freeze,

    KindleFireHDX: 'Devices::Kindle_Fire_HDX'.freeze,
    LaptopWithHIDPIScreen: 'Devices::Laptop_with_HiDPI_screen'.freeze,
    LaptopWithMDPIScreen: 'Devices::Laptop_with_MDPI_screen'.freeze,
    LaptopWithTouch: 'Devices::Laptop_with_touch'.freeze,
    LGG6: 'Devices::LG_G6'.freeze,
    LGOptimusL70: 'Devices::LG_Optimus_L70'.freeze,
    MicrosoftLumia550: 'Devices::Microsoft_Lumia_550'.freeze,
    MicrosoftLumia950: 'Devices::Microsoft_Lumia_950'.freeze,
    Nexus10: 'Devices::Nexus_10'.freeze,
    Nexus4: 'Devices::Nexus_4'.freeze,
    Nexus5: 'Devices::Nexus_5'.freeze,
    Nexus5X: 'Devices::Nexus_5X'.freeze,
    Nexus6: 'Devices::Nexus_6'.freeze,
    Nexus6P: 'Devices::Nexus_6P'.freeze,
    Nexus7: 'Devices::Nexus_7'.freeze,

    NokiaLumia520: 'Devices::Nokia_Lumia_520'.freeze,
    NokiaN9: 'Devices::Nokia_N9'.freeze,
    OnePlus7T: 'Devices::OnePlus_7T'.freeze,
    OnePlus7TPro: 'Devices::OnePlus_7T_Pro'.freeze,

    Pixel2: 'Devices::Pixel_2'.freeze,
    Pixel2XL: 'Devices::Pixel_2_XL'.freeze,
    Pixel3: 'Devices::Pixel_3'.freeze,
    Pixel3XL: 'Devices::Pixel_3_XL'.freeze,
    Pixel4: 'Devices::Pixel_4'.freeze,
    Pixel4XL: 'Devices::Pixel_4_XL'.freeze,
    Pixel5: 'Devices::Pixel_5'.freeze,
    GalaxyS22: 'Devices::Galaxy_S22'.freeze,
    GalaxyTabS7: 'Devices::Galaxy_Tab_S7'.freeze,
  }
end