Skip to content

Commit

Permalink
[FIX] Add the "download study all" XPATH to nav function instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathdugre committed May 23, 2024
1 parent 3925bbb commit 3f265a4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ppmi_downloader/ppmi_navigator.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,9 +668,11 @@ def Download_StudyData_ALL(self) -> None:
while not self.driver.current_url == studydata_url:
# Need to click on ALL tab first to be able to see all checkboxes
# See screenshots_errors/Screenshot_error_ALL_06-12-2023.jpg
self.click_button("ygtvlabelel77", BY=By.ID, debug_name="ALL tab")
while not self.driver.current_url.startswith(studydata_url):
self.click_button("sCatChkBox_312", BY=By.ID, debug_name="ALL checkbox")

self.click_button(
'//*[@id="categoryMenuTree"]//*[@class="ida-studyData-category"][text()="ALL"]',
debug_name="ALL tab",
)

def Download_ImageCollections(self) -> None:
r"""Action to click on "Image Collections" in "Download"
Expand Down

0 comments on commit 3f265a4

Please sign in to comment.