Get the current screen orientation
@return [:landscape, :portrait] orientation
@api public
# File lib/selenium/webdriver/common/driver_extensions/rotatable.rb, line 37 def orientation bridge.getScreenOrientation.to_sym.downcase end
Change the screen orientation
@param [:landscape, :portrait] Orientation
@api public
# File lib/selenium/webdriver/common/driver_extensions/rotatable.rb, line 21 def rotate(orientation) unless ORIENTATIONS.include?(orientation) raise ArgumentError, "expected #{ORIENTATIONS.inspect}, got #{orientation.inspect}" end bridge.setScreenOrientation(orientation.to_s.upcase) end
Generated with the Darkfish Rdoc Generator 2.