Skip to content

Commit

Permalink
Bug fix referencing page elements in selenium test
Browse files Browse the repository at this point in the history
  • Loading branch information
asset-web committed Jul 3, 2024
1 parent 30a7f31 commit 9037143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_clamav.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _upload_file(self, url, file_path):
self.driver.get("%s%s" % (self.live_server_url, url))
self.driver.find_element(By.ID, "id_abstracts_upload").send_keys(file_path)
self.driver.find_element(By.ID, "upload_button").click()
WebDriverWait(self.driver, timeout=30, poll_frequency=0.5).until(lambda x: x.find_element_by_id('id_include_child_nodes_1'))
WebDriverWait(self.driver, timeout=30, poll_frequency=0.5).until(lambda x: x.find_element((By.ID, "id_include_child_nodes_1")))

def _assert_file_upload(self, url, file_path):
logger.debug('_assert_file_upload %s %s ' % (url, file_path))
Expand Down

0 comments on commit 9037143

Please sign in to comment.