Class TouchscreenImpl

  • All Implemented Interfaces:
    Touchscreen

    class TouchscreenImpl
    extends java.lang.Object
    implements Touchscreen
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private PageImpl page  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void tap​(double x, double y)
      Dispatches a touchstart and touchend event with a single touch at the position (x,y).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TouchscreenImpl

        TouchscreenImpl​(PageImpl page)
    • Method Detail

      • 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