MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / press

Method press

javascript/selenium-webdriver/lib/input.js:358–383  ·  view source on GitHub ↗

* @param {!Button=} button The button to press. * @param width * @param height * @param pressure * @param tangentialPressure * @param tiltX * @param tiltY * @param twist * @param altitudeAngle * @param azimuthAngle * @return {!Action} An action to press the specified bu

(
    button = Button.LEFT,
    width = 0,
    height = 0,
    pressure = 0,
    tangentialPressure = 0,
    tiltX = 0,
    tiltY = 0,
    twist = 0,
    altitudeAngle = 0,
    azimuthAngle = 0,
  )

Source from the content-addressed store, hash-verified

356 * @package
357 */
358 press(
359 button = Button.LEFT,
360 width = 0,
361 height = 0,
362 pressure = 0,
363 tangentialPressure = 0,
364 tiltX = 0,
365 tiltY = 0,
366 twist = 0,
367 altitudeAngle = 0,
368 azimuthAngle = 0,
369 ) {
370 return {
371 type: Action.Type.POINTER_DOWN,
372 button,
373 width,
374 height,
375 pressure,
376 tangentialPressure,
377 tiltX,
378 tiltY,
379 twist,
380 altitudeAngle,
381 azimuthAngle,
382 }
383 }
384
385 /**
386 * @param {!Button=} button The button to release.

Callers 6

action.jsFile · 0.45
pressMethod · 0.45
doubleClickMethod · 0.45
dragAndDropMethod · 0.45
actions_test.jsFile · 0.45
input_test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected