@@ -862,6 +862,7 @@ def test_agenda_view_group_filter_toggle(self):
862862
863863 # Click the group button
864864 group_button = self .get_agenda_filter_group_button (wait , group_acronym )
865+ self .scroll_to_element (group_button )
865866 group_button .click ()
866867
867868 # Check visibility
@@ -927,6 +928,7 @@ def _schedule_session(meeting, session):
927928
928929 # enable hackathon group
929930 group_button = self .get_agenda_filter_group_button (wait , 'hackathon' )
931+ self .scroll_to_element (group_button )
930932 group_button .click ()
931933 self .assert_agenda_item_visibility (['mars' , 'hackathon' ])
932934
@@ -968,6 +970,7 @@ def test_agenda_view_group_filter_toggle_without_replace_state(self):
968970
969971 # Be sure we're at the URL we think we're at before we click
970972 self .assertEqual (self .driver .current_url , url )
973+ self .scroll_to_element (group_button )
971974 group_button .click () # click!
972975
973976 expected_url = '%s?show=%s' % (url , group_acronym )
@@ -1077,6 +1080,7 @@ def test_session_materials_modal(self):
10771080 ),
10781081 'Modal open button not found or not clickable' ,
10791082 )
1083+ self .scroll_to_element (open_modal_button )
10801084 open_modal_button .click ()
10811085 WebDriverWait (self .driver , 2 ).until (
10821086 expected_conditions .visibility_of (modal_div ),
@@ -1109,6 +1113,7 @@ def test_session_materials_modal(self):
11091113 ),
11101114 'Modal close button not found or not clickable' ,
11111115 )
1116+ self .scroll_to_element (close_modal_button )
11121117 close_modal_button .click ()
11131118 WebDriverWait (self .driver , 2 ).until (
11141119 expected_conditions .invisibility_of_element (modal_div ),
@@ -1128,6 +1133,7 @@ def test_session_materials_modal(self):
11281133 ),
11291134 'Modal open button not found or not clickable for refresh test' ,
11301135 )
1136+ self .scroll_to_element (open_modal_button )
11311137 open_modal_button .click ()
11321138 WebDriverWait (self .driver , 2 ).until (
11331139 expected_conditions .visibility_of (modal_div ),
@@ -1585,6 +1591,7 @@ def advance_month():
15851591 button = WebDriverWait (self .driver , 2 ).until (
15861592 expected_conditions .element_to_be_clickable (
15871593 (By .CSS_SELECTOR , 'div#calendar button.fc-next-button' )))
1594+ self .scroll_to_element (button )
15881595 button .click ()
15891596
15901597 seen = set ()
0 commit comments