Created
December 18, 2017 10:02
-
-
Save colobas/0797b0b909532918be5e98a778ab9920 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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