Class TouchscreenImpl

java.lang.Object
com.microsoft.playwright.impl.TouchscreenImpl
All Implemented Interfaces:
Touchscreen

class TouchscreenImpl extends Object implements Touchscreen
  • Field Details

  • Constructor Details

    • TouchscreenImpl

      TouchscreenImpl(PageImpl page)
  • Method Details

    • tap

      public void tap(double x, double y)
      Description copied from interface: Touchscreen
      Dispatches a touchstart and touchend event with a single touch at the position (x,y).

      NOTE: Page.tap() the method will throw if hasTouch option of the browser context is false.

      Specified by:
      tap in interface Touchscreen