EpiCoV_downloader icon indicating copy to clipboard operation
EpiCoV_downloader copied to clipboard

Alway crash at "selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //div[contains(text(), "metadata")]"

Open Zjianglin opened this issue 3 years ago • 0 comments

Hi, it always crash at download metadata,

(base) zjl@zjl:download$ gisaid_EpiCov2_downloader  -u $UNAME -p $PASSWD -ss 2021-09-01-2021-12-01 -hc -le -o 20210901_20211201
2021-12-02 22:27 [INFO] GISAID EpiCoV Utility v21.05.10
2021-12-02 22:27 [INFO] Opening browser...
2021-12-02 22:27 [INFO] Opening website GISAID...
2021-12-02 22:27 [INFO] GISAID Initiative
2021-12-02 22:27 [INFO] Logining to GISAID...
2021-12-02 22:28 [INFO] Navigating to EpiCoV...
2021-12-02 22:28 [INFO] Clicking downloads...
2021-12-02 22:28 [INFO] Downloading metadata...
Traceback (most recent call last):
  File "/data/amax81t/packages/epi-co-v_downloader_202107/gisaid_EpiCoV_downloader.py", line 528, in <module>
    main()
  File "/data/amax81t/packages/epi-co-v_downloader_202107/gisaid_EpiCoV_downloader.py", line 504, in main
    download_gisaid_EpiCoV(
  File "/data/amax81t/packages/epi-co-v_downloader_202107/gisaid_EpiCoV_downloader.py", line 219, in download_gisaid_EpiCoV
    dl_button = driver.find_element_by_xpath('//div[contains(text(), "metadata")]')
  File "/home/zjl/anaconda3/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 394, in find_element_by_xpath
    return self.find_element(by=By.XPATH, value=xpath)
  File "/home/zjl/anaconda3/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 976, in find_element
    return self.execute(Command.FIND_ELEMENT, {
  File "/home/zjl/anaconda3/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/home/zjl/anaconda3/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //div[contains(text(), "metadata")]

could you please help me?

Zjianglin avatar Dec 03 '21 06:12 Zjianglin