Class Frame.DragAndDropOptions

  • Enclosing interface:
    Frame

    public static class Frame.DragAndDropOptions
    extends Object
    • Field Detail

      • noWaitAfter

        public Boolean noWaitAfter
        Deprecated.
        This option has no effect.
      • sourcePosition

        public Position sourcePosition
        Clicks on the source element at this point relative to the top-left corner of the element's padding box. If not specified, some visible point of the element is used.
      • strict

        public Boolean strict
        When true, the call requires selector to resolve to a single element. If given selector resolves to more than one element, the call throws an exception.
      • targetPosition

        public Position targetPosition
        Drops on the target element at this point relative to the top-left corner of the element's padding box. If not specified, some visible point of the element is used.
      • trial

        public Boolean trial
        When set, this method only performs the actionability checks and skips the action. Defaults to false. Useful to wait until the element is ready for the action without performing it.
    • Constructor Detail

      • DragAndDropOptions

        public DragAndDropOptions()
    • Method Detail

      • setNoWaitAfter

        public Frame.DragAndDropOptions setNoWaitAfter​(boolean noWaitAfter)
        Deprecated.
        This option has no effect.
      • setSourcePosition

        public Frame.DragAndDropOptions setSourcePosition​(double x,
                                                          double y)
        Clicks on the source element at this point relative to the top-left corner of the element's padding box. If not specified, some visible point of the element is used.
      • setSourcePosition

        public Frame.DragAndDropOptions setSourcePosition​(Position sourcePosition)
        Clicks on the source element at this point relative to the top-left corner of the element's padding box. If not specified, some visible point of the element is used.
      • setStrict

        public Frame.DragAndDropOptions setStrict​(boolean strict)
        When true, the call requires selector to resolve to a single element. If given selector resolves to more than one element, the call throws an exception.
      • setTargetPosition

        public Frame.DragAndDropOptions setTargetPosition​(double x,
                                                          double y)
        Drops on the target element at this point relative to the top-left corner of the element's padding box. If not specified, some visible point of the element is used.
      • setTargetPosition

        public Frame.DragAndDropOptions setTargetPosition​(Position targetPosition)
        Drops on the target element at this point relative to the top-left corner of the element's padding box. If not specified, some visible point of the element is used.
      • setTrial

        public Frame.DragAndDropOptions setTrial​(boolean trial)
        When set, this method only performs the actionability checks and skips the action. Defaults to false. Useful to wait until the element is ready for the action without performing it.