#NEWLINE# def test_driver_drag_and_drop( 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 ( 'Drag and Drop' ) #NEWLINE# action . tap ( el ) . perform ( ) #NEWLINE# dd3 = self . driver . find_element_by_id ( 'com.example.android.apis:id/drag_dot_3' ) #NEWLINE# dd2 = self . driver . find_element_by_id ( 'com.example.android.apis:id/drag_dot_2' ) #NEWLINE# self . driver . drag_and_drop ( dd3 , self ) #NEWLINE# el = self . driver . find_element_by_id ( 'com.example.android.apis:id/drag_result_text' ) #NEWLINE# self . assertEqual ( 'Dropped!' , el . get_attribute ( 'text' ) )