Removes a touch action in a location.
Use this statement with TouchDown and TouchMove to perform tap, swipe, and pinch zoom actions in scripts that test Windows 8 applications and to test applications that can interpret touch actions.
Note: This statement is not recorded and must be manually added to scripts.
Syntax
TouchUp(X, Y, ...)
Arguments
You can specify a maximum of 16 locations.
| Argument | Description |
|---|---|
| X | X coordinate to indicate the horizontal pixel location where the touch action is removed, relative to the screen or a window or control. |
| Y | Y coordinate to indicate the vertical pixel location where the touch action is removed, relative to the screen or a window or control. |
Supported objects
Browser, Button, Calendar, Cell, CheckBox, ColumnHeader, ComboBox, ContextMenu, Control, DateTimePicker, EditBox, Grid, HTMLElement, HTMLLink, HTMLTable, Image, Item, Label, Link, ListBox, ListView, Menu, NavigationField, PopupMenu, ProgressBar, RadioButton, Row, RowHeader, ScrollBar, Slider, SpinBox, SubItem, Tab, TabBar, ToolBar, Tree, Window
Example
' Simulates a pinch zoom on the screen
TouchDown(75, 100, 125, 100)
TouchMove(25, 100, 175,100)
TouchUp(25, 100, 175, 100)