#NEWLINE# def test_actions_with_waits( self ) : #NEWLINE# #INDENT# el1 = self . driver . find_element_by_name ( 'Content' ) #NEWLINE# el2 = self . driver . find_element_by_name ( 'Animation' ) #NEWLINE# self . driver . scroll ( el1 , el2 ) #NEWLINE# el = self . driver . find_element_by_name ( 'Views' ) #NEWLINE# action = TouchAction ( self . driver ) #NEWLINE# action . tap ( el ) . perform ( ) #NEWLINE# el = self . driver . find_element_by_name ( 'Expandable Lists' ) #NEWLINE# action . press ( el ) . move_to ( x = 100 , y = ( - 1000 ) ) . release ( ) . perform ( ) #NEWLINE# el = self . driver . find_element_by_name ( 'Splitting Touches across Views' ) #NEWLINE# action . tap ( el ) . perform ( ) #NEWLINE# els = self . driver . find_elements_by_class_name ( 'android.widget.ListView' ) #NEWLINE# a1 = TouchAction ( ) #NEWLINE# a1 . press ( els [ 0 ] ) . move_to ( x = 10 , y = 0 ) . move_to ( x = 10 , y = ( - 75 ) ) . wait ( 1000 ) . move_to ( x = 10 , y = ( - 600 ) ) . release ( ) #NEWLINE# a2 = TouchAction ( ) #NEWLINE# a2 . press ( els [ 1 ] ) . move_to ( x = 10 , y = 10 ) . move_to ( x = 10 , y = ( - 300 ) ) . wait ( 500 ) . move_to ( x = 10 , y = ( - 600 ) ) . release ( ) #NEWLINE# ma = MultiAction ( self . driver , action [ 0 ] ) #NEWLINE# ma . add ( a1 , a2 ) #NEWLINE# ma . perform ( )