Skip to content

Instantly share code, notes, and snippets.

@alexpodoff
Created November 20, 2016 15:23
Show Gist options
  • Save alexpodoff/86655439f44f480beda6cdbc61c75778 to your computer and use it in GitHub Desktop.
Save alexpodoff/86655439f44f480beda6cdbc61c75778 to your computer and use it in GitHub Desktop.
def get_contact_list(self):
wd = self.app.wd
contacts = []
rows = wd.find_elements_by_name("entry")
self.contact_page()
for row in rows:
cells = row.find_elements_by_tag_name("td")
id = cells[0].find_element_by_name("selected[]").get_attribute("value")
contacts.append(Contact(id=id))
return contacts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment