Class: Applitools::Selenium::AndroidDeviceTarget
- Inherits:
-
Object
- Object
- Applitools::Selenium::AndroidDeviceTarget
- Defined in:
- lib/applitools/selenium/visual_grid/android_device_target.rb
Overview
Represents an Android device target for mobile app testing Used in conjunction with the Visual Grid to render mobile app screenshots on specific Android device configurations
Instance Attribute Summary collapse
-
#device_name ⇒ Object
readonly
Returns the value of attribute device_name.
-
#screen_orientation ⇒ Object
readonly
Returns the value of attribute screen_orientation.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(device_name, options = {}) ⇒ AndroidDeviceTarget
constructor
Initialize a new Android device target.
Constructor Details
#initialize(device_name, options = {}) ⇒ AndroidDeviceTarget
Initialize a new Android device target
18 19 20 21 22 |
# File 'lib/applitools/selenium/visual_grid/android_device_target.rb', line 18 def initialize(device_name, = {}) @device_name = device_name @screen_orientation = [:screen_orientation] || [:orientation] @version = [:android_version] || [:version] end |
Instance Attribute Details
#device_name ⇒ Object (readonly)
Returns the value of attribute device_name.
9 10 11 |
# File 'lib/applitools/selenium/visual_grid/android_device_target.rb', line 9 def device_name @device_name end |
#screen_orientation ⇒ Object (readonly)
Returns the value of attribute screen_orientation.
9 10 11 |
# File 'lib/applitools/selenium/visual_grid/android_device_target.rb', line 9 def screen_orientation @screen_orientation end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
9 10 11 |
# File 'lib/applitools/selenium/visual_grid/android_device_target.rb', line 9 def version @version end |