コード例 #1
0
ファイル: Actions.java プロジェクト: emakiej/selenium
 /**
  * A constructor that should only be used when the keyboard or mouse were extended to provide
  * additional functionality (for example, dragging-and-dropping from the desktop).
  *
  * @param keyboard the {@link Keyboard} implementation to delegate to.
  * @param mouse the {@link Mouse} implementation to delegate to.
  */
 public Actions(Keyboard keyboard, Mouse mouse) {
   this.mouse = mouse;
   this.keyboard = keyboard;
   resetCompositeAction();
 }
コード例 #2
0
ファイル: Actions.java プロジェクト: emakiej/selenium
 /**
  * Only used by the TouchActions class.
  *
  * @param keyboard implementation to delegate to.
  */
 public Actions(Keyboard keyboard) {
   this.keyboard = keyboard;
   resetCompositeAction();
 }
コード例 #3
0
ファイル: Actions.java プロジェクト: emakiej/selenium
 /**
  * Generates a composite action containing all actions so far, ready to be performed (and resets
  * the internal builder state, so subsequent calls to build() will contain fresh sequences).
  *
  * @return the composite action
  */
 public Action build() {
   CompositeAction toReturn = action;
   resetCompositeAction();
   return toReturn;
 }