Method: Appium#orientation

Defined in:
lib/selenium/appium/appium.rb

#orientationObject

Public: Gets the current screen orientation.

Returns the Symbol screen orientation, which may be :portrait, :landscape, or nil if it could not be determined.



280
281
282
283
284
285
286
287
288
# File 'lib/selenium/appium/appium.rb', line 280

def orientation
  ret = selenium_get('orientation')
  begin
    orientation = ret['orientation']
      return orientation
  rescue
    return nil
  end
end