Sha256: 5c637419edfcb1338ca2286c7b8892a1878bd0dd680922038515ace0217ed584
Contents?: true
Size: 608 Bytes
Versions: 2
Compression:
Stored size: 608 Bytes
Contents
module Selenium module WebDriver # # @private # module DriverExtensions module Rotatable ORIENTATIONS = [:landscape, :portrait] def rotate(orientation) unless ORIENTATIONS.include?(orientation) raise ArgumentError, "expected #{ORIENTATIONS.inspect}, got #{orientation.inspect}" end bridge.setScreenOrientation(orientation.to_s.upcase) end def orientation bridge.getScreenOrientation.to_sym.downcase end end # Rotatable end # DriverExtensions end # WebDriver end # Selenium
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
selenium-webdriver-0.1.1 | lib/selenium/webdriver/common/driver_extensions/rotatable.rb |
selenium-webdriver-0.1.0 | lib/selenium/webdriver/common/driver_extensions/rotatable.rb |