Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drag & Drop Espresso

Is it possible to perform drag & drop action via Espresso? I need to move one view down (in straight line) in order to accept some conditions in my automation test.

like image 793
F1sher Avatar asked Feb 09 '16 16:02

F1sher


People also ask

What did drag mean?

Drag is a type of entertainment where people dress up and perform, often in highly stylized ways. The term originated as British theater slang in the 19th century and was used to describe women's clothing worn by men.

What is drag LGBT?

Drag is where individuals dress up as a different gender, primarily for short periods of time, which differentiates the practice from people who are trans and change their gender socially and/or legally.

What is the synonym of drag?

to move or act slowly one of the climbers was beginning to drag. Synonyms & Similar Words. crawl. delay. poke.

Why is it called a drag?

This definition probably originated in the theatre of the late 1800s, where male performers wore petticoats to perform as women. Their petticoats would drag on the floor, and so they referred to dressing up as women as “putting on their drags.”


1 Answers

You can use GeneralSwipeAction to perform drag & drop.

public static ViewAction swipeUp() {  
return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.BOTTOM_CENTER,  
    GeneralLocation.TOP_CENTER, Press.FINGER);  
}

You can customize the location to meet your requirement as well.

like image 94
blade Avatar answered Oct 26 '22 09:10

blade