dandi / dandi-api-webshots-tools

0 stars 0 forks source link

address deprecations #17

Open yarikoptic opened 2 years ago

yarikoptic commented 2 years ago
(git)lena:~/proj/dandi/dandi-api-webshots[master]git
$> python tools/make_webshots.py -i dandi 000026
2022-04-21T19:31:34-0400 [INFO    ] Process-1[308331]: make_webshots: Logging in ...
/home/yoh/proj/dandi/dandi-api-webshots/tools/make_webshots.py:127: DeprecationWarning: find_element_by_* commands are deprecated. Please use find_element() instead
  username_field = self.driver.find_element_by_id("login_field")
/home/yoh/proj/dandi/dandi-api-webshots/tools/make_webshots.py:128: DeprecationWarning: find_element_by_* commands are deprecated. Please use find_element() instead
  password_field = self.driver.find_element_by_id("password")
/home/yoh/proj/dandi/dandi-api-webshots/tools/make_webshots.py:132: DeprecationWarning: find_elements_by_tag_name is deprecated. Please use find_elements(by=By.TAG_NAME, value=name) instead
  self.driver.find_elements_by_tag_name("form")[0].submit()
/home/yoh/proj/dandi/dandi-api-webshots/tools/make_webshots.py:139: DeprecationWarning: find_element_by_xpath is deprecated. Please use find_element(by=By.XPATH, value=xpath) instead
  self.driver.find_element_by_xpath(
/home/yoh/proj/dandi/dandi-api-webshots/tools/make_webshots.py:150: DeprecationWarning: find_elements_by_class_name is deprecated. Please use find_elements(by=By.CLASS_NAME, value=name) instead
  or self.driver.find_elements_by_class_name("v-avatar")
2022-04-21T19:31:42-0400 [INFO    ] Process-1[308331]: make_webshots: 000026 landing

selenium 4.1.3 here