Package com.microsoft.playwright.impl
Class TouchscreenImpl
java.lang.Object
com.microsoft.playwright.impl.TouchscreenImpl
- All Implemented Interfaces:
Touchscreen
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtap(double x, double y) Dispatches atouchstartandtouchendevent with a single touch at the position (x,y).
-
Field Details
-
page
-
-
Constructor Details
-
TouchscreenImpl
TouchscreenImpl(PageImpl page)
-
-
Method Details
-
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
-