Skip to content

Instantly share code, notes, and snippets.

@colobas
Created December 18, 2017 10:02
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 colobas/0797b0b909532918be5e98a778ab9920 to your computer and use it in GitHub Desktop.
Save colobas/0797b0b909532918be5e98a778ab9920 to your computer and use it in GitHub Desktop.
from selenium import webdriver
import pyperclip
driver = webdriver.Chrome()
driver.get("http://192.168.1.218")
input("AUTHENTICATE AND GO TO PASSMAN PAGE")
table = driver.find_elements_by_class_name("credential-table")[0]
rows = table.find_elements_by_tag_name("tr")
entries = []
for row in rows:
name = row.text
row.click()
driver.find_element_by_xpath('//*[@id="app-sidebar"]/div[1]/div[3]/div[2]/span/div[2]/div[2]').click()
pw = pyperclip.paste()
entries.append((name,pw))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment