#NEWLINE# def zoom_plot( selenium ) : #NEWLINE# #INDENT# pan_buttons = selenium . find_elements_by_css_selector ( '.bk-button-bar-list[type="pan"] button' ) #NEWLINE# zoom_button = pan_buttons [ 1 ] #NEWLINE# if ( 'active' not in zoom_button . get_attribute ( 'class' ) ) : #NEWLINE# #INDENT# zoom_button . click ( ) #NEWLINE# #UNINDENT# canvas = selenium . find_element_by_tag_name ( 'canvas' ) #NEWLINE# actions = ActionChains ( selenium ) #NEWLINE# actions . move_to_element_with_offset ( canvas , 10 , 10 ) #NEWLINE# actions . click_and_hold ( ) #NEWLINE# actions . move_by_offset ( 200 , 200 ) #NEWLINE# actions . release ( ) #NEWLINE# actions . perform ( )