Package com.microsoft.playwright.impl
Class TouchscreenImpl
- java.lang.Object
-
- com.microsoft.playwright.impl.TouchscreenImpl
-
- All Implemented Interfaces:
Touchscreen
class TouchscreenImpl extends java.lang.Object implements Touchscreen
-
-
Constructor Summary
Constructors Constructor Description TouchscreenImpl(PageImpl page)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtap(double x, double y)Dispatches atouchstartandtouchendevent with a single touch at the position (x,y).
-
-
-
Field Detail
-
page
private final PageImpl page
-
-
Constructor Detail
-
TouchscreenImpl
TouchscreenImpl(PageImpl page)
-
-
Method Detail
-
tap
public void tap(double x, double y)Description copied from interface:TouchscreenDispatches atouchstartandtouchendevent with a single touch at the position (x,y).NOTE:
Page.tap()the method will throw ifhasTouchoption of the browser context is false.- Specified by:
tapin interfaceTouchscreen
-
-