Skip to content

Instantly share code, notes, and snippets.

@zachlim98
Last active November 18, 2020 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zachlim98/fc0c55daaa60a4bb14cd795636c4b265 to your computer and use it in GitHub Desktop.
Save zachlim98/fc0c55daaa60a4bb14cd795636c4b265 to your computer and use it in GitHub Desktop.
#scroll to the bottom to ensure dropdown list is not blocked
driver.execute_script("window.scrollTo(0, 400)")
#select dropdown list to display all 50 holdings
ddelement= Select(driver.find_element_by_xpath('/html/body/div[5]/div[3]/div/section[2]/div/div/div[3]/div[2]/label/select'))
ddelement.select_by_visible_text('50')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment