Sha256: dd89fb6768cadd83ff2070eac28a7c9dbeb08834bb6cff2a030aa29a81370269
Contents?: true
Size: 612 Bytes
Versions: 12
Compression:
Stored size: 612 Bytes
Contents
module Selenium module WebDriver # # @api 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
12 entries across 12 versions & 1 rubygems