Created
October 18, 2012 13:50
-
-
Save Tb0/3911954 to your computer and use it in GitHub Desktop.
Drag and drop tracks into playlist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def drag_and_drop_tracks_into_playlist(tracks, playlist) | |
track_elem = element_by_css('css_path_to_my_track_element') | |
pl_elem = element_by_css('css_path_to_my_playlist_element') | |
select_tracks(tracks) | |
driver.action.click_and_hold(track_elem).move_to(pl_elem, 2, 2).click.perform | |
wait_for_ajax | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment