Skip to content

Commit

Permalink
Fix overlooked value in upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwang committed Oct 6, 2024
1 parent 924a4be commit 0e95ffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions page_perf_timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ def upload_file(self, url):

@clock_action("dummy_file_download")
def download_dummy_file(self):
open_download_link = self.driver.find_element(By.XPATH, "//div[@data-index]//div[@data-state='ok' and contains(., 'HG01105.mapped')]")
open_download_link = self.driver.find_element(By.XPATH, "//div[@data-index]//div[@data-state='ok' and contains(., 'NA19473.mapped')]")
open_download_link.click()
with SeleniumCustomWait(self.driver, 1200):
download_link = self.driver.find_element(By.XPATH, "//div[@data-index]//div[@data-state='ok' and contains(., 'HG01105.mapped')]//a[@title='Download']")
download_link = self.driver.find_element(By.XPATH, "//div[@data-index]//div[@data-state='ok' and contains(., 'NA19473.mapped')]//a[@title='Download']")
all_cookies=self.driver.get_cookies()
cookies_dict = {cookie["name"]: cookie["value"] for cookie in all_cookies}
r = requests.get(download_link.get_attribute("href"), stream=True, cookies=cookies_dict)
Expand Down

0 comments on commit 0e95ffa

Please sign in to comment.