Skip to content

Commit c9232ef

Browse files
committed
Off by one error
1 parent fdea155 commit c9232ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

itk_dev_shared_components/eflyt/eflyt_case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def approve_case(browser: webdriver.Chrome):
148148
approve_persons_button.click()
149149
else:
150150
# Approve each person individually
151-
person_count = len(browser.find_elements(By.XPATH, '//table[@id="ctl00_ContentPlaceHolder2_GridViewMovingPersons"]//tr'))
151+
person_count = len(browser.find_elements(By.XPATH, '//table[@id="ctl00_ContentPlaceHolder2_GridViewMovingPersons"]//tr')) - 1
152152

153153
for i in range(person_count):
154154
browser.find_element(By.XPATH, f'//table[@id="ctl00_ContentPlaceHolder2_GridViewMovingPersons"]//tr[{i+2}]//td[2]').click()

0 commit comments

Comments
 (0)