Hound.Helpers.Orientation

Provides function related to orientation.

Summary

orientation()

Gets browser’s orientation. Will return either :landscape or :portrait

set_orientation(orientation)

Sets browser’s orientation

Functions

orientation()

Specs:

  • orientation :: :landscape | :portrait

Gets browser’s orientation. Will return either :landscape or :portrait.

set_orientation(orientation)

Specs:

  • set_orientation(:landscape | :portrait) :: :ok

Sets browser’s orientation.

:landscape or :portrait are valid values for the first argument.


set_orientation(:landscape)
set_orientation(:portrait)