Skip to content

Commit

Permalink
update element xpath
Browse files Browse the repository at this point in the history
  • Loading branch information
htz1992213 committed Dec 19, 2023
1 parent 9fc5995 commit b66a72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdgo/forcefield/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def data_from_pdb(self, pdb_dir: str):
"""
self.web.get("http://traken.chem.yale.edu/ligpargen/")
time.sleep(1)
upload = self.web.find_element(By.XPATH, '//*[@id="exampleMOLFile"]')
upload = self.web.find_element(By.XPATH, '//*[@id="samplebutton"]')
try:
upload.send_keys(pdb_dir)
submit = self.web.find_element(By.XPATH, "/html/body/div[2]/div/div[2]/form/button[1]")
Expand Down

0 comments on commit b66a72a

Please sign in to comment.