There is a scenario where i have to edit user profile by changing it User name. So the already entered text of 35 letters is need to be removed first from that field for which i am swiping the mouse across the field, which is not at all useful during script playback.
driver.swipe(340, 1336, 340, -5573, 2083);
Is there any command to clear all the entered text in that field?