Skip to content

Exceptions#

DragDropError #

Bases: GestureError

Raised when a drag and drop operation fails.

Source code in src/interaction/gesture/exceptions.py
class DragDropError(GestureError):
    """Raised when a drag and drop operation fails."""

ElementInteractionError #

Bases: GestureError

Raised when interaction with an element fails.

Source code in src/interaction/gesture/exceptions.py
class ElementInteractionError(GestureError):
    """Raised when interaction with an element fails."""

ElementNotInViewError #

Bases: GestureError

Raised when an element cannot be brought into view after maximum attempts.

Source code in src/interaction/gesture/exceptions.py
class ElementNotInViewError(GestureError):
    """Raised when an element cannot be brought into view after maximum attempts."""

GestureError #

Bases: WebDriverException

Base exception for all gesture-related errors.

Source code in src/interaction/gesture/exceptions.py
class GestureError(WebDriverException):
    """Base exception for all gesture-related errors."""

InvalidGestureError #

Bases: GestureError

Raised when an invalid gesture is attempted.

Source code in src/interaction/gesture/exceptions.py
class InvalidGestureError(GestureError):
    """Raised when an invalid gesture is attempted."""

SwipeError #

Bases: GestureError

Raised when a swipe action fails.

Source code in src/interaction/gesture/exceptions.py
class SwipeError(GestureError):
    """Raised when a swipe action fails."""

ViewportError #

Bases: GestureError

Raised when there are issues with viewport dimensions or calculations.

Source code in src/interaction/gesture/exceptions.py
class ViewportError(GestureError):
    """Raised when there are issues with viewport dimensions or calculations."""

ZoomError #

Bases: GestureError

Raised when a zoom operation fails.

Source code in src/interaction/gesture/exceptions.py
class ZoomError(GestureError):
    """Raised when a zoom operation fails."""