Skip to content

Instantly share code, notes, and snippets.

@vik-y
Created March 29, 2017 09:52
Show Gist options
  • Save vik-y/ad66ab28451ea215f4ee86d2e309d85d to your computer and use it in GitHub Desktop.
Save vik-y/ad66ab28451ea215f4ee86d2e309d85d to your computer and use it in GitHub Desktop.
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time, re
browser = webdriver.Firefox()
def getUsers():
h = browser.find_element_by_id('#someuserlist')
users = h.get_attribute('innerHTML') # WIll return the html of users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment